Log during stitch all and handle errors
This commit is contained in:
parent
96d58a2d0f
commit
bd796f98a1
2 changed files with 48 additions and 1 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue