Check if command had some trouble in Python?
- by Shady
I have this command
h = urllib.urlopen("http://google.com/")
How can I check if it retrieves me some error, internet down or something I don't expect?
For example, something like
if error
print 'ERROR'
Thank you