Run purge_empty_scans() at the end of each scan

This commit is contained in:
jaknapper 2025-05-09 12:12:12 +01:00
parent 2a23982330
commit 0df363a1be

View file

@ -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: