ensure postproc finalize() is called during C-c or crash (#355)
This commit is contained in:
@@ -81,7 +81,8 @@ class Job():
|
|||||||
"https://github.com/mikf/gallery-dl/issues ."),
|
"https://github.com/mikf/gallery-dl/issues ."),
|
||||||
exc.__class__.__name__, exc)
|
exc.__class__.__name__, exc)
|
||||||
log.debug("", exc_info=True)
|
log.debug("", exc_info=True)
|
||||||
self.handle_finalize()
|
finally:
|
||||||
|
self.handle_finalize()
|
||||||
|
|
||||||
def dispatch(self, msg):
|
def dispatch(self, msg):
|
||||||
"""Call the appropriate message handler"""
|
"""Call the appropriate message handler"""
|
||||||
|
|||||||
Reference in New Issue
Block a user