[Qgis-user] Capturing Python Error

Peter Petrik peter.petrik at lutraconsulting.co.uk
Wed May 29 04:01:04 PDT 2019


Hi,

try to look at first aid plugin https://plugins.qgis.org/plugins/firstaid/

Cheers,
Peter

On Wed, May 29, 2019 at 12:43 PM Raúl Sangonzalo <raulsangonzalo at gmail.com>
wrote:

> Hi, is it possible to capture Python Errors? I mean, I have been able to
> log most of them, but I want to capture the error in red within the Python
> error Dialog.
>
> [image: image.png]
>
> This is what I have used so far:
>
> def errorCatcher(msg, tag, level):
>     QMessageBox.information(iface.mainWindow(), "Error", msg)
> QgsApplication.messageLog().messageReceived.connect(errorCatcher)
>
> Many thanks,
> Raúl
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190529/8a77f525/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 8489 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190529/8a77f525/attachment-0001.png>


More information about the Qgis-user mailing list