[PyQt] "Abort Trap: 6" on exception on GUI thread

Maxwell Grady max.grady at gmail.com
Sat Feb 11 03:57:22 GMT 2017


PyQt > 5.5 will always Abort when there is an unhandled exception which in
this case is the TypeError as a result of the raise statement. (
http://pyqt.sourceforge.net/Docs/PyQt5/incompatibilities.html)

To my knowledge that behavior can't be turned off with any form of
configuration.

-Maxwell

On Fri, Feb 10, 2017 at 10:46 PM, Patrick Stinson <patrickkidd at gmail.com>
wrote:

> Oh yes, and I’m using Qt/PyQt at 5.7.1 with python3.5
>
> On Feb 10, 2017, at 7:45 PM, Patrick Stinson <patrickkidd at gmail.com>
> wrote:
>
> Hello!
>
> Is there any way to configure PyQt5 not to trigger an abort trap when an
> exception is raised in the gui thread?
>
> turin:pkdiagram patrick$ make run
> Traceback (most recent call last):
>   File "/Users/patrick/Documents/dev/pkdiagram/pkdiagram/scene.py", line
> 28, in mousePressEvent
>     raise 'sdsdfsd'
> TypeError: exceptions must derive from BaseException
> make: *** [run] Abort trap: 6
> turin:pkdiagram patrick$
>
>
> Thank you!
> -P
>
>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
University of New Hampshire
Department of Physics
Pohl Group
DeMeritt Hall 119
---
Síocháin agus Grá
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170210/992346b2/attachment.html>


More information about the PyQt mailing list