From 47448aac3c8024566a5521c9d86817eabb979f9a Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 11 Feb 2023 22:16:54 +0000 Subject: [PATCH] Print traceback when download worker fails --- devine/commands/dl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index 690ba98..1b6c01e 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -7,6 +7,7 @@ import random import re import sys import time +import traceback from collections import defaultdict from concurrent import futures from concurrent.futures import ThreadPoolExecutor @@ -480,6 +481,7 @@ class dl: if e: self.DL_POOL_STOP.set() pool.shutdown(wait=False, cancel_futures=True) + traceback.print_exception(e) self.log.error(f"Download worker threw an unhandled exception: {e!r}") return else: