Apply suggestions from code review of branch stitching-cancel
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
This commit is contained in:
parent
c146b89e74
commit
6db8fac613
1 changed files with 2 additions and 1 deletions
|
|
@ -319,7 +319,8 @@ class SmartScanThing(OFMThing):
|
||||||
# Error must be raised so UI gives correct output
|
# Error must be raised so UI gives correct output
|
||||||
raise e
|
raise e
|
||||||
except lt.exceptions.InvocationCancelledError as e:
|
except lt.exceptions.InvocationCancelledError as e:
|
||||||
# InvocationCancelledError is caught for scanning but not for stitching
|
# InvocationCancelledError is caught in `_run_scan` if it happens
|
||||||
|
# while scanning, but it propagates if it occurs during stitching.
|
||||||
# If raised we still need to save the scan log.
|
# If raised we still need to save the scan log.
|
||||||
if self._ongoing_scan is not None:
|
if self._ongoing_scan is not None:
|
||||||
self._ongoing_scan.save_scan_log(self)
|
self._ongoing_scan.save_scan_log(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue