summaryrefslogtreecommitdiffstats
path: root/pyload/remote/thriftbackend/Protocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/remote/thriftbackend/Protocol.py')
-rw-r--r--pyload/remote/thriftbackend/Protocol.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyload/remote/thriftbackend/Protocol.py b/pyload/remote/thriftbackend/Protocol.py
index c020e7a23..ecf0680ad 100644
--- a/pyload/remote/thriftbackend/Protocol.py
+++ b/pyload/remote/thriftbackend/Protocol.py
@@ -2,12 +2,13 @@
from thrift.protocol import TBinaryProtocol
+
class Protocol(TBinaryProtocol.TBinaryProtocol):
def writeString(self, str):
try:
str = str.encode("utf8", "ignore")
- except Exception, e:
+ except Exception:
pass
self.writeI32(len(str))