[GRASS-git] [OSGeo/grass] e0672a: grass.pygrass: Add the psycopg2 hint as an excepti...
Vaclav Petras
noreply at github.com
Tue Jul 14 01:23:14 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: e0672abdb0a386d847b8ef4c383c0b7d09f2ebcb
https://github.com/OSGeo/grass/commit/e0672abdb0a386d847b8ef4c383c0b7d09f2ebcb
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M python/grass/pygrass/vector/table.py
Log Message:
-----------
grass.pygrass: Add the psycopg2 hint as an exception note (#7690)
The table connection raised a new ImportError with the hint as its message,
so the message of the original error, which says which module is missing,
was replaced by the hint.
Add the hint as a note to the original error instead. From the Python
documentation of BaseException.add_note(): Add the string note to the
exception's notes which appear in the standard traceback after the exception
string. The traceback then shows both the missing module and the hint.
Exception notes need Python 3.11, which is now the minimum version.
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list