Skip to content
Snippets Groups Projects
Commit b2a4c92e authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

better error handling

parent 2aef55ad
No related branches found
No related tags found
No related merge requests found
......@@ -58,8 +58,13 @@ def urisplit(uri):
else:
try:
port = int(port)
except:
port = 80
except ValueError:
if proto == 'https':
port = 443
else:
port = 80
log.warn('port cannot be extracted from BOSH URL %s, using port %i',
uri, port)
return proto, host, port, path
def get_proxy_data_from_dict(proxy):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment