diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-01 18:11:25 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-01 18:11:25 +0200 |
commit | c126f738bd5be581d5321521eedc9b14a8165a0e (patch) | |
tree | 418989bfa81bfd30085f09102df53f6f58b00f14 /pyload/manager/Remote.py | |
parent | Use 'import' instead 'from' (1) (diff) | |
download | pyload-c126f738bd5be581d5321521eedc9b14a8165a0e.tar.xz |
Use 'import' instead 'from' (2)
Diffstat (limited to 'pyload/manager/Remote.py')
-rw-r--r-- | pyload/manager/Remote.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pyload/manager/Remote.py b/pyload/manager/Remote.py index c2d254932..3c6dabefa 100644 --- a/pyload/manager/Remote.py +++ b/pyload/manager/Remote.py @@ -1,8 +1,7 @@ # -*- coding: utf-8 -*- # @author: RaNaN -from threading import Thread -from traceback import print_exc +import traceback class BackendBase(Thread): @@ -22,7 +21,7 @@ class BackendBase(Thread): except Exception, e: self.core.log.error(_("Remote backend error: %s") % e) if self.core.debug: - print_exc() + traceback.print_exc() finally: self.running = False @@ -77,7 +76,7 @@ class RemoteManager(object): except Exception, e: self.core.log.error(_("Failed loading backend %(name)s | %(error)s") % {"name": b, "error": str(e)}) if self.core.debug: - print_exc() + traceback.print_exc() else: backend.start() self.backends.append(backend) |