I have a command in a try clause which I know throws an exception. I\'m trying to catch it in an \"except\" clause, but the except clause seems to not recognize the existen
You need to check for urllib2.HTTPError:
except urllib2.HTTPError: