<div dir="ltr">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. (<a href="http://pyqt.sourceforge.net/Docs/PyQt5/incompatibilities.html">http://pyqt.sourceforge.net/Docs/PyQt5/incompatibilities.html</a>)<div><br></div><div>To my knowledge that behavior can't be turned off with any form of configuration. </div><div><br></div><div>-Maxwell</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 10, 2017 at 10:46 PM, Patrick Stinson <span dir="ltr"><<a href="mailto:patrickkidd@gmail.com" target="_blank">patrickkidd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Oh yes, and I’m using Qt/PyQt@5.7.1 with python3.5<div><div class="h5"><div><br><div><blockquote type="cite"><div>On Feb 10, 2017, at 7:45 PM, Patrick Stinson <<a href="mailto:patrickkidd@gmail.com" target="_blank">patrickkidd@gmail.com</a>> wrote:</div><br class="m_2544888005605295039Apple-interchange-newline"><div><div style="word-wrap:break-word">Hello!<div><br></div><div>Is there any way to configure PyQt5 not to trigger an abort trap when an exception is raised in the gui thread?</div><div><br></div><div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">turin:pkdiagram patrick$ make run</span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Traceback (most recent call last):</span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> File "/Users/patrick/Documents/dev/<wbr>pkdiagram/pkdiagram/scene.py", line 28, in mousePressEvent</span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> raise 'sdsdfsd'</span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">TypeError: exceptions must derive from BaseException</span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">make: *** [run] Abort trap: 6</span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">turin:pkdiagram patrick$ </span></div></div><div><br></div><div><br></div><div>Thank you!</div><div>-P</div></div></div></blockquote></div><br></div></div></div></div><br>______________________________<wbr>_________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.<wbr>riverbankcomputing.com/<wbr>mailman/listinfo/pyqt</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>University of New Hampshire</div><div>Department of Physics</div><div>Pohl Group</div><div>DeMeritt Hall 119</div><div>---</div>Síocháin agus Grá</div></div>
</div>