summaryrefslogtreecommitdiffstats
path: root/deluge/ui/client.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2015-10-22 23:14:14 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2015-10-30 18:39:47 +0000
commit807fa609f9449f1f18b40ad98c350eca2211037a (patch)
treef88d68646cb20fd02f8809fbb2877d5717c69459 /deluge/ui/client.py
parentad3cba929ee175a5990e617461bc3a638e557a97 (diff)
downloaddeluge-807fa609f9449f1f18b40ad98c350eca2211037a.tar.gz
deluge-807fa609f9449f1f18b40ad98c350eca2211037a.tar.bz2
deluge-807fa609f9449f1f18b40ad98c350eca2211037a.zip
[Lint] Cleanup code to pass PyLint Warning category
Selected Warning messages disabled in pylintrc: * unused-argument: Quite a large and disruptive change if enabled. * broad-except: Most required in-depth investigation to determine type. * fixme: Not important * protected-access: Complicated to fix * import-error: Too many false-positives * unidiomatic-typecheck: Should be fixed in the next round of checks. * unused-variable: Again large and disruptive changes. * global-statement: Most usage is required. * attribute-defined-outside-init: Should be fixed in next round of checks. * arguments-differ: Possible false-positives, needs revisited. * no-init, non-parent-init-called, super-init-not-called: False-positives? * signature-differs: False-positives?
Diffstat (limited to 'deluge/ui/client.py')
-rw-r--r--deluge/ui/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index 7725882cc..5dd36b975 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -159,7 +159,7 @@ class DelugeRPCProtocol(DelugeTransferProtocol):
# The rest just get's logged in debug level, just to log
# what's happening
log.debug(msg)
- except:
+ except Exception:
import traceback
log.error("Failed to handle RPC_ERROR (Old daemon?): %s\nLocal error: %s",
request[2], traceback.format_exc())
@@ -426,8 +426,8 @@ class DaemonClassicProxy(DaemonProxy):
def __init__(self, event_handlers=None):
if event_handlers is None:
event_handlers = {}
- import deluge.core.daemon
- self.__daemon = deluge.core.daemon.Daemon(classic=True)
+ from deluge.core import daemon
+ self.__daemon = daemon.Daemon(classic=True)
log.debug("daemon created!")
self.connected = True
self.host = "localhost"