capture traceback exception


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. try:
  2. pass
  3. except:
  4. import traceback
  5. err=traceback.format_exc()

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.