[PyQt] Exceptions swallowed in QWebPage::extension

Phil Thompson phil at riverbankcomputing.com
Tue Sep 2 16:22:23 BST 2014

On 28/08/2014 5:46 pm, Florian Bruhin wrote:
> 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).

I don't see how this is a PyQt bug. How do you expect the call to 
extension() to be triggered? For my ISP I simply get a correctly 
downloaded page that says there is no such site.


More information about the PyQt mailing list