[PyQt] Exceptions swallowed in QWebPage::extension

Florian Bruhin me at the-compiler.org
Thu Aug 28 17:46:18 BST 2014


Hi,

when a Python exception is raised in QWebPage::extension, the
exception is never handled/printed. This is with Qt/PyQt 5.3.1.

See the attached example.

I suspect this is a bug in PyQt somewhere, right? What would be the
most elegant way to work around it? I can only think of using a single
shot QTimer to raise the ecxeption later in the mainloop (which
works).

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
             GPG 0xFD55A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exc_test.py
Type: text/x-python
Size: 493 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140828/95714101/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140828/95714101/attachment.sig>


More information about the PyQt mailing list