/ Published in: Python
Expand |
Embed | Plain Text
try: dosomething() print "Record Added" except: # catch *all* exceptions e = sys.exc_info()[1] print "Error: %s" % e
You need to login to post a comment.
try: dosomething() print "Record Added" except: # catch *all* exceptions e = sys.exc_info()[1] print "Error: %s" % e
You need to login to post a comment.