Created
April 4, 2012 17:51
-
-
Save starenka/2304245 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| starenka /tmp % cat meh.py [90% 05:31:21] | |
| import sys | |
| try: | |
| fap() | |
| except Exception, e: | |
| exc, mess, tb = sys.exc_info() #<-tady si ji ulozim | |
| #tady si ji vypisu | |
| import traceback | |
| print traceback.format_exc(tb) | |
| starenka /tmp % python meh.py [89% 05:33:35] | |
| Traceback (most recent call last): | |
| File "meh.py", line 4, in <module> | |
| fap() | |
| NameError: name 'fap' is not defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment