Pygobject Glib.mainloop() And Exceptions
I'm using GLib.MainLoop() from PyGObject in my Python application and have a question. Is it possible to handle Python exception that raises in loop.run()? For example I'm calling
Solution 1:
No, the exception is not propagated. It is caught and printed. No exception in a Python callback causes the loop to exit.
Solution 2:
You can handle these types of errors through sys.excepthook
Post a Comment for "Pygobject Glib.mainloop() And Exceptions"