Move update data outside of finally block
This commit is contained in:
parent
4234c92fed
commit
272f050905
1 changed files with 1 additions and 1 deletions
|
|
@ -190,6 +190,7 @@ class SmartScanThing(Thing):
|
|||
# If _scan_data is set then scan started
|
||||
if self._scan_data is not None:
|
||||
self._return_to_starting_position()
|
||||
self._update_scan_inputs_json()
|
||||
if not isinstance(e, NotEnoughFreeSpaceError):
|
||||
# Don't stich if drive is full (already logged)
|
||||
self._perform_final_stitch()
|
||||
|
|
@ -197,7 +198,6 @@ class SmartScanThing(Thing):
|
|||
raise e
|
||||
finally:
|
||||
# However the scan finishes, unset all variables and release lock
|
||||
self._update_scan_inputs_json()
|
||||
self._cancel = None
|
||||
self._scan_logger = None
|
||||
self._autofocus = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue