captures error in widget gethostaddr, thanks Patrick

This commit is contained in:
mdipierro
2012-07-27 09:32:36 -05:00
parent 8120f75ace
commit 4e50aee372
2 changed files with 7 additions and 3 deletions

View File

@@ -1 +1 @@
Version 2.00.0 (2012-07-26 17:53:32) dev
Version 2.00.0 (2012-07-27 09:32:24) dev

View File

@@ -800,8 +800,12 @@ def console():
global_settings.cmd_options = options
global_settings.cmd_args = args
options.ips = [ip for ip in socket.gethostbyname_ex(socket.getfqdn())[2]
if ip!='127.0.0.1']
try:
options.ips = [
ip for ip in socket.gethostbyname_ex(socket.getfqdn())[2]
if ip!='127.0.0.1']
except socket.gaierror:
options.ips = []
if options.run_system_tests:
run_system_tests()