Do not terminate application when fail to create QApplication

Phil Thompson phil at riverbankcomputing.com
Thu Jul 28 11:51:26 BST 2022


On 28/07/2022 11:48, Grzegorz Bokota wrote:
> 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

That's a Qt, not PyQt, issue.

Phil


More information about the PyQt mailing list