/ Published in: Python
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
try:
dosomething()
print "Record Added"
except: # catch *all* exceptions
e = sys.exc_info()[1]
print "Error: %s" % e
Comments
 Subscribe to comments
                    Subscribe to comments
                
                