summaryrefslogtreecommitdiffstats
path: root/pyload/remote/thriftbackend/ThriftTest.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 23:53:07 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 23:53:07 +0100
commit004a80bfaad38f9400e8aebcb8f980353a232295 (patch)
tree1e786d2d14a3040767aac237982544b74a9567cb /pyload/remote/thriftbackend/ThriftTest.py
parentFix previous merge (diff)
downloadpyload-004a80bfaad38f9400e8aebcb8f980353a232295.tar.xz
PEP-8, Python Zen, refactor and reduce code (thx FedeG)
Diffstat (limited to 'pyload/remote/thriftbackend/ThriftTest.py')
-rw-r--r--pyload/remote/thriftbackend/ThriftTest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/remote/thriftbackend/ThriftTest.py b/pyload/remote/thriftbackend/ThriftTest.py
index aec20fa33..7243cc6f2 100644
--- a/pyload/remote/thriftbackend/ThriftTest.py
+++ b/pyload/remote/thriftbackend/ThriftTest.py
@@ -25,7 +25,7 @@ def bench(f, *args, **kwargs):
e = time()
try:
print "%s: %f s" % (f._Method__name, e-s)
- except:
+ except Exception:
print "%s: %f s" % (f.__name__, e-s)
return ret