update exception handling
1 parent 067ee08 commit 41443596978a447cf3cb8268bc93c3fe521b2dee
@Pascal Gollor Pascal Gollor authored on 16 Mar 2022
Showing 1 changed file
View
2
■■■
getIPaddress.py
try:
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