Log during stitch all and handle errors

This commit is contained in:
jaknapper 2026-05-15 15:37:04 +01:00
parent 96d58a2d0f
commit bd796f98a1
2 changed files with 48 additions and 1 deletions

View file

@ -744,4 +744,8 @@ class SmartScanThing(OFMThing):
# need stitching.
for scan in self.get_data_for_gallery():
if scan.dzi is None:
self.stitch_scan(scan_name=scan.name)
try:
self.logger.info(f"Stitching {scan.name}")
self.stitch_scan(scan_name=scan.name)
except (RuntimeError, ChildProcessError):
self.logger.warning(f"Couldn't stitch scan {scan.name}")