summaryrefslogtreecommitdiffstats
path: root/pyload/manager/Remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/manager/Remote.py')
-rw-r--r--pyload/manager/Remote.py7
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)