Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zqfan committed Jul 21, 2023
1 parent 1f2b55a commit c089639
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kazoo/handlers/threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def running(self):
return self._running

def _create_thread_worker(self, work_queue):
log = self.logger
def _thread_worker(): # pragma: nocover
while True:
try:
Expand All @@ -119,7 +120,7 @@ def _thread_worker(): # pragma: nocover
break
func()
except Exception:
self.logger.exception("Exception in worker queue thread")
log.exception("Exception in worker queue thread")
finally:
work_queue.task_done()
del func # release before possible idle
Expand Down

0 comments on commit c089639

Please sign in to comment.