<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>try to look at first aid plugin <a href="https://plugins.qgis.org/plugins/firstaid/">https://plugins.qgis.org/plugins/firstaid/</a></div><div><br></div><div>Cheers, </div><div>Peter</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 29, 2019 at 12:43 PM Raúl Sangonzalo <<a href="mailto:raulsangonzalo@gmail.com">raulsangonzalo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">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.<div><br></div><div><div><img src="cid:ii_jw93p0vb0" alt="image.png" width="312" height="170"><br></div></div><div><br></div><div>This is what I have used so far:</div><div><br></div><div>def errorCatcher(msg, tag, level):<br>    QMessageBox.information(iface.mainWindow(), "Error", msg)<br>QgsApplication.messageLog().messageReceived.connect(errorCatcher)<br></div><div><br></div><div>Many thanks,</div><div>Raúl</div></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>