Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Nov 23, 2023
1 parent 4940d4e commit a14c340
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions nxdrive/engine/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,11 @@ def run(self) -> None:
self.thread_id = current_thread_id()

try:
try:
self._execute()
except ThreadInterrupt:
log.debug("Thread INTERRUPT")
except Exception:
log.exception("Thread EXCEPTION")
self._execute()
except ThreadInterrupt:
log.debug("Thread INTERRUPT")
except Exception:
log.exception("Thread EXCEPTION")

Check warning on line 200 in nxdrive/engine/workers.py

View check run for this annotation

Codecov / codecov/patch

nxdrive/engine/workers.py#L196-L200

Added lines #L196 - L200 were not covered by tests
finally:
self.quit()
self._running = False
Expand Down

0 comments on commit a14c340

Please sign in to comment.