[PyQt] Exception within Slot causes Abort

Baz Walter bazwal at ftml.net
Tue Mar 22 20:59:38 GMT 2016


On 22/03/16 19:01, Damon Lynch wrote:
> In my code at least, sometimes when there's an uncaught exception, there
> can be a deluge of them (e.g. exceptions related to a QListView / Model /
> Delegate etc.) If you don't want the application to automatically exit
> after the user closes the message box then stopping the display of message
> box too many times is critical. For now at least I handle that rather
> crudely by only showing an error message via a QMessageBox if it's not been
> shown before, which is determined by checking the module and line number of
> the exception.

The first time I came across this kind of thing, I thought that somehow 
the message-box wouldn't close. But of course it *was* closing - it's 
just that there was enormous stack of identical message-boxes on top of 
each other. Quite a good "WTF", I suppose.



More information about the PyQt mailing list