From c126f738bd5be581d5321521eedc9b14a8165a0e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 1 May 2015 18:11:25 +0200 Subject: Use 'import' instead 'from' (2) --- pyload/manager/Remote.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'pyload/manager/Remote.py') 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) -- cgit v1.2.3