something really frustrating is that I normally do:
try:
bla...
except:
dumpStack()
thinking that dumpStack would be the equivalent of e.printStackTrace() in Java...
but most of the time I get the message "No stack trace available".
How irritating...
So the only solution I have found is to use
except Exception, inst: print('unable to create JMSModule ' + jmsModule) print inst print sys.exc_info()[0]
No comments:
Post a Comment