Run purge_empty_scans() at the end of each scan
This commit is contained in:
parent
2a23982330
commit
0df363a1be
1 changed files with 2 additions and 0 deletions
|
|
@ -527,6 +527,8 @@ class SmartScanThing(Thing):
|
|||
)
|
||||
raise e
|
||||
finally:
|
||||
# Whether or not this scan succeeded, remove any scan folders containing zero images
|
||||
self.purge_empty_scans(logger=self._scan_logger)
|
||||
if self._capture_thread:
|
||||
# If the capture thread had an error, we capture it here
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue