Improve messages on host resolve problems

This commit is contained in:
Andrey Pohilko 2014-07-03 16:36:43 +04:00
parent fbc73987e5
commit 6168c094b6

View File

@ -331,7 +331,11 @@ class AddressWizard:
:param address_str:
:return: tuple of boolean, string, int - isIPv6, resolved_ip, port (may be null), extracted_address
"""
logging.debug("Trying to resolve address string")
if not address_str:
raise RuntimeError("Mandatory option was not specified: address")
logging.debug("Trying to resolve address string: %s", address_str)
port = None