Fix error where address is null in _get_host_info (#506)

* Fix error where address is null in _get_host_info

* Bump CI
This commit is contained in:
Yotam Tanay
2017-01-03 15:12:15 +01:00
committed by Honza Král
parent 8107bbcf93
commit a644af0e07
+2 -2
View File
@@ -219,8 +219,8 @@ class Transport(object):
host = {}
address = host_info.get('http', {}).get('publish_address')
# malformed address
if ':' not in address:
# malformed or no address given
if not address or ':' not in address:
return None
host['host'], host['port'] = address.rsplit(':', 1)