diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-04 01:09:43 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-04 01:09:43 +0100 |
commit | 2f4d7d614171054c3c2b0b6185fa4ea465f5312f (patch) | |
tree | 7614a301498ef19c901b5930ebf26ea287b33120 /module/PluginThread.py | |
parent | [OneFichierCom] Fixed (diff) | |
download | pyload-2f4d7d614171054c3c2b0b6185fa4ea465f5312f.tar.xz |
Use more print_exc + code cosmetics
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r-- | module/PluginThread.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py index 6dc6a0fe1..59d2cabc9 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -207,6 +207,9 @@ class DownloadThread(PluginThread): pyfile.setStatus("aborted") + if self.m.core.debug: + print_exc() + self.clean(pyfile) continue @@ -239,6 +242,9 @@ class DownloadThread(PluginThread): self.m.log.warning(_("Download failed: %(name)s | %(msg)s") % {"name": pyfile.name, "msg": msg}) pyfile.error = msg + if self.m.core.debug: + print_exc() + self.m.core.hookManager.downloadFailed(pyfile) self.clean(pyfile) continue @@ -380,11 +386,16 @@ class DecrypterThread(PluginThread): self.m.log.error(_("Decrypting failed: %(name)s | %(msg)s") % {"name": pyfile.name, "msg": msg}) pyfile.error = msg + if self.m.core.debug: + print_exc() return except Abort: self.m.log.info(_("Download aborted: %s") % pyfile.name) pyfile.setStatus("aborted") + + if self.m.core.debug: + print_exc() return except Retry: |