From 20f7b073121e7818dcd2ac834dbc8dba78d8bbee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 27 Jul 2019 11:14:52 +0200 Subject: [PATCH] ensure postproc finalize() is called during C-c or crash (#355) --- gallery_dl/job.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gallery_dl/job.py b/gallery_dl/job.py index 20823a69..637561ae 100644 --- a/gallery_dl/job.py +++ b/gallery_dl/job.py @@ -81,7 +81,8 @@ class Job(): "https://github.com/mikf/gallery-dl/issues ."), exc.__class__.__name__, exc) log.debug("", exc_info=True) - self.handle_finalize() + finally: + self.handle_finalize() def dispatch(self, msg): """Call the appropriate message handler"""