Skip to content
Snippets Groups Projects
Commit 4d8314bd authored by Frede H's avatar Frede H :speech_balloon:
Browse files

added exception printout in inet_conn_check()

parent 40bbe19c
No related branches found
No related tags found
No related merge requests found
......@@ -169,8 +169,8 @@ def inet_conn_check(maxwait=2):
try:
data = urlopen(host, timeout=maxwait)
break
except:
pass
except Exception as e:
print(".: {} {} '{}'".format(txt.WRN_CLR, host, e))
return bool(data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment