Method Call in Exception
mwt
michaeltaft at gmail.com
Wed Apr 19 19:54:39 EDT 2006
In my latest attempt at some Python code, I've been tempted to write
something in the form of:
try:
[...] #doing some internet stuff
except IOError:
alternate_method_that_doesnt_need_internet()
This works when I try it, but I feel vaguely uneasy about putting
method calls in exception blocks. So tell me, Brave Pythoneers, is this
evil sorcery that I will end up regretting, or is it just plain good
ol' Python magic?
More information about the Python-list
mailing list