diff --git a/getIPaddress.py b/getIPaddress.py index a289150..e7fd198 100755 --- a/getIPaddress.py +++ b/getIPaddress.py @@ -35,5 +35,7 @@ getPublicIP(ipv4=ipv==4, verbose=args.verbose) except RuntimeError as e: print('[ERROR]:', e) + except requests.exceptions.ConnectionError as e: + print('[ERROR]:', e) # end try # end if