mirror of
https://github.com/devine-dl/devine.git
synced 2025-04-30 01:59:44 +00:00
Fix printing of download worker exceptions
This commit is contained in:
parent
a8694cb049
commit
570e0aba00
@ -450,7 +450,7 @@ class dl:
|
|||||||
if e:
|
if e:
|
||||||
self.DL_POOL_STOP.set()
|
self.DL_POOL_STOP.set()
|
||||||
pool.shutdown(wait=False, cancel_futures=True)
|
pool.shutdown(wait=False, cancel_futures=True)
|
||||||
traceback.print_exception(e)
|
traceback.print_exception(type(e), e, e.__traceback__)
|
||||||
self.log.error(f"Download worker threw an unhandled exception: {e!r}")
|
self.log.error(f"Download worker threw an unhandled exception: {e!r}")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user