made Link Mauve's patch python 3 ready

This commit is contained in:
tmolitor 2016-08-06 23:46:57 +02:00
parent 873fa6fdae
commit eef97d989f
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class Proxy65Manager:
port = item.getAttr('port') port = item.getAttr('port')
try: try:
port = int(port) port = int(port)
except ValueError, TypeError: except (ValueError, TypeError) as e:
port = 1080 port = 1080
if not host or not jid: if not host or not jid:
self.proxies[proxy]._on_connect_failure() self.proxies[proxy]._on_connect_failure()