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:
@@ -219,8 +219,8 @@ class Transport(object):
|
|||||||
host = {}
|
host = {}
|
||||||
address = host_info.get('http', {}).get('publish_address')
|
address = host_info.get('http', {}).get('publish_address')
|
||||||
|
|
||||||
# malformed address
|
# malformed or no address given
|
||||||
if ':' not in address:
|
if not address or ':' not in address:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
host['host'], host['port'] = address.rsplit(':', 1)
|
host['host'], host['port'] = address.rsplit(':', 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user