How can I catch 2 exceptions at once for example:
try:
self.gses = opener.open(req )
except (urllib2.HTTPEr ror,urllib2.URL Error):
do something..
Seems to work, but how do I also get information about the error?
--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)
try:
self.gses = opener.open(req )
except (urllib2.HTTPEr ror,urllib2.URL Error):
do something..
Seems to work, but how do I also get information about the error?
--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)
Comment