summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExtractArchive.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-07 22:08:58 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-07 22:08:58 +0200
commitc99421d6385e0f6b8bd9095c705becbc35f873a0 (patch)
tree40cbfeb2ac5042660c3aef5e86b95f8437f1a5d2 /module/plugins/hooks/ExtractArchive.py
parent[YadiSk] Fix https://github.com/pyload/pyload/issues/1321 (diff)
downloadpyload-c99421d6385e0f6b8bd9095c705becbc35f873a0.tar.xz
Traceback code cosmetics
Diffstat (limited to 'module/plugins/hooks/ExtractArchive.py')
-rw-r--r--module/plugins/hooks/ExtractArchive.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index 2f981d06b..595512c12 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -4,9 +4,9 @@ from __future__ import with_statement
import os
import sys
+import traceback
from copy import copy
-from traceback import print_exc
# monkey patch bug in python 2.6 and lower
# http://bugs.python.org/issue6122 , http://bugs.python.org/issue1236 , http://bugs.python.org/issue1731717
@@ -177,12 +177,12 @@ class ExtractArchive(Hook):
else:
self.logWarning(_("Could not activate: %s") % p, e)
if self.core.debug:
- print_exc()
+ traceback.print_exc()
except Exception, e:
self.logWarning(_("Could not activate: %s") % p, e)
if self.core.debug:
- print_exc()
+ traceback.print_exc()
if self.extractors:
self.logInfo(_("Activated") + " " + "|".join("%s %s" % (Extractor.__name__, Extractor.VERSION) for Extractor in self.extractors))
@@ -497,7 +497,7 @@ class ExtractArchive(Hook):
except Exception, e:
self.logError(name, _("Unknown error"), e)
if self.core.debug:
- print_exc()
+ traceback.print_exc()
self.manager.dispatchEvent("archive_extract_failed", pyfile, archive)