Re: python traceback displaying error help please!

2019-09-14 Thread AudioGames . net Forum — Developers room : bgt lover via Audiogames-reflector
Re: python traceback displaying error help please! Well, I don't think that a file containing the traceback info would be verry helpfull in displaying in a message box.With my method, one can collect the info to store it in a variable, as well as redirecting stderr to a real file obje

Re: python traceback displaying error help please!

2019-09-14 Thread AudioGames . net Forum — Developers room : bgt lover via Audiogames-reflector
Re: python traceback displaying error help please! Well, I don't think that a file containing the traceback info would be verry helpfull in displaying in a message box.With my method, one can collect the info to store it in a variable, as well as redirecting stderr to a real

Re: python traceback displaying error help please!

2019-09-14 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: python traceback displaying error help please! More easier way... just fix your redirection via the correct piping commands. On Windows, just do:python my_script.py > errors.txt 2>&1On Linux/Mac/whatever, dopython my_script.py >& errors.txtWill always print

Re: python traceback displaying error help please!

2019-09-14 Thread AudioGames . net Forum — Developers room : NicklasMCHD via Audiogames-reflector
Re: python traceback displaying error help please! Worth noting with pauliyobo's example, with sys.excepthook. sys.excepthook only captures unhandled exceptions (IE exceptions not catched in any try/except block) URL: https://forum.audiogames.net/post/461930/#p461930 -- Audio

Re: python traceback displaying error help please!

2019-09-14 Thread AudioGames . net Forum — Developers room : bgt lover via Audiogames-reflector
Re: python traceback displaying error help please! or to redirect sys.stderr to a file like object class whos write method stores the textual info it receives in a global variable untill a newline character is reached, at which moment the traceback message is complete, so you display the

Re: python traceback displaying error help please!

2019-09-14 Thread AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector
Re: python traceback displaying error help please! You could do this in 2 ways.1. Use the try except block as munawar said.2. create your custom handle for sys.excepthook, so that you can write the error to a file, or show it in a dialog.def handle(exc_type, value, tb):    pass # write

Re: python traceback displaying error help please!

2019-09-14 Thread AudioGames . net Forum — Developers room : Munawar via Audiogames-reflector
Re: python traceback displaying error help please! Hi,You can use the try...except pattern:try: Some code that might cause an error except Exception as e: Do something with the error object eSo, using this pattern you can write exception messages to a file or pop them up in a dialog

Re: python traceback displaying error help please!

2019-09-14 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
Re: python traceback displaying error help please! Ok, i understand thanks URL: https://forum.audiogames.net/post/461845/#p461845 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames

Re: python traceback displaying error help please!

2019-09-13 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: python traceback displaying error help please! Unless you know where the air is going to happen, then no. There isn’t an easy solution. URL: https://forum.audiogames.net/post/461829/#p461829 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

python traceback displaying error help please!

2019-09-13 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
python traceback displaying error help please! Hi all, i was wondering if there was a way for me to let python display the traceback in a dialog box instead of printing it out. is there an easy way to do this?I tried for example python app.py >>error.txt, but that makes the app name