Posted By

obi on 04/23/10


Tagged

error python Handling


Versions (?)

error handling


 / Published in: Python
 

  1. import traceback
  2.  
  3. try:
  4. print "sup world"
  5. 1 / 0
  6. except Exception, err:
  7. traceback.print_exc()
  8. print "There was an error."

Report this snippet  

You need to login to post a comment.