From d7103f9bddce385aa1909a22cbfd5ff3b47f326e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 23 Jun 2025 17:17:28 +0200 Subject: [PATCH] [job:data] wrap exceptions in a dict (#7723) fixes exception when using 'num-to-str' with '-j' --- gallery_dl/job.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gallery_dl/job.py b/gallery_dl/job.py index 3704fdda..3f889a26 100644 --- a/gallery_dl/job.py +++ b/gallery_dl/job.py @@ -913,7 +913,10 @@ class DataJob(Job): except exception.StopExtraction: pass except Exception as exc: - self.data.append((exc.__class__.__name__, str(exc))) + self.data.append((-1, { + "error" : exc.__class__.__name__, + "message": str(exc), + })) except BaseException: pass