Application quits on python exception
Raymond Osborn
rayosborn at mac.com
Wed Dec 13 20:43:12 GMT 2023
By ‘quit’, do you mean that the application aborts with a core dump? PyQt has aborted QApplications when encountering an unhandled Python exception since v5.5, so I’m not sure why you would not have encountered it before. Perhaps it’s a completely different issue.
If it’s the same issue, then you need to customize the sys.excepthook function. You can see an example of a fix I implemented a while ago in https://github.com/nexpy/nexpy/pull/125.
If it’s a different issue, then I apologize for adding to the noise.
Ray
> On Dec 13, 2023, at 2:16 PM, Patrick Stinson <patrickkidd at gmail.com> wrote:
>
> I’ve been using PyQt for years but this is my first pyqt6 app.
>
> It looks like new behavior that QApplication quits on the first python exception? Is there a way to disable this? Or am I spacing out something?
>
> Cheers,
> -Patrick
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20231213/3213b72e/attachment.htm>
More information about the PyQt
mailing list