Re: Is their a way to handle a traceback in a multi threaded python app

Hi Danny,
that is very simple.
For example, here an example.
The Script print a easy traceback. On the same way, you can get of curse the text and log it or send it to the users etc...
code:
import traceback
import sys

try:
    do_stuff()
except Exception:
    print(traceback.format_exc())
    # or
    print(sys.exc_info()[0])

got from:
http://stackoverflow.com/questions/3702 … he-program

I hope this will help you!

best regards
Christopher

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : chpross via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : chpross via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : superantoha via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : danny via Audiogames-reflector

Reply via email to