Do not terminate application when fail to create QApplication

Grzegorz Bokota g.bokota at mimuw.edu.pl
Thu Jul 28 11:48:40 BST 2022


Dear Phil,
Is there any option to not terminate process on failure of creating
QApplication. This behaviour is especially problematic when we use pytest
that capture stdout and stderr so message about lack of plugins is not
rendered and less experienced users do not know how to interpret
stacktrace.

If fail of application create will raise exception instead of abort process
it will be possible to provide proper error message to users and fresh OSS
contributors.

Example issue that was reported as motivation for this email:
https://github.com/napari/napari/issues/4876

Regards,
Grzegorz Bokota
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220728/c5978d6d/attachment.htm>


More information about the PyQt mailing list