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 = {}
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user