[pp] add 'error' event
This commit is contained in:
@@ -347,6 +347,9 @@ class DownloadJob(Job):
|
||||
self.status |= 4
|
||||
self.log.error("Failed to download %s",
|
||||
pathfmt.filename or url)
|
||||
if "error" in hooks:
|
||||
for callback in hooks["error"]:
|
||||
callback(pathfmt)
|
||||
return
|
||||
|
||||
if not pathfmt.temppath:
|
||||
|
||||
Reference in New Issue
Block a user