[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Exceptions swallowed in QWebPage::extension
From:       Florian Bruhin <me () the-compiler ! org>
Date:       2014-08-29 7:54:10
Message-ID: 20140829075410.GH28617 () lupin
[Download RAW message or body]

This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

[Attachment #2 (multipart/signed)]
This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.


* Florian Bruhin <me@the-compiler.org> [2014-08-28 18:46:18 +0200]:
> 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).

I also noticed when I re-raise the exception with the original
traceback ("yield from exc" or using .with_traceback()), it gets
ignored again.

This is just an uneducated guess, but maybe the traceback is somehow
"corrupted" and Python ignores the exception because of that?

Florian

-- 
http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
             GPG 0xFD55A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/

[Attachment #5 (application/pgp-signature)]
[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic