pgRouting / pgRoutingLayer

pgRouting Layer plugin for QGIS
https://qgis.pgrouting.org/
GNU General Public License v2.0
23 stars 18 forks source link

Catch "connectors.postgis.DbError" exception #141

Closed sanak closed 2 years ago

sanak commented 2 years ago

Fixes #140.

Changes proposed in this pull request:

The issue's cause was catching parent dbConnector.DbError side, so I fixed to catch child connectors.postgis.DbError side with minimum import. Also, I changed the log level from default Qgis.Info to Qgis.Critical for user's awareness.

@pgRouting/admins

sanak commented 2 years ago

@cvvergara, @cayetanobv (CC: @dkastl) Thanks for approve !

This issue's original cause may be also my past bad code in QGIS v1 and v2 with Python2.

Anyway, I merge this once.