Skip to content

Instantly share code, notes, and snippets.

@starenka
Created April 4, 2012 17:51
Show Gist options
  • Save starenka/2304245 to your computer and use it in GitHub Desktop.
Save starenka/2304245 to your computer and use it in GitHub Desktop.
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