diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-11-01 04:38:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-11-01 04:38:10 +0000 |
commit | 6ad5e5b3d0d0029af2401594ecc398fcb6bc9ff5 (patch) | |
tree | 4a648e2fca058a515ad4dfe12302bb9d41ca1c7d /pgcli/auth.py | |
parent | Releasing debian version 3.5.0-5. (diff) | |
download | pgcli-6ad5e5b3d0d0029af2401594ecc398fcb6bc9ff5.tar.xz pgcli-6ad5e5b3d0d0029af2401594ecc398fcb6bc9ff5.zip |
Merging upstream version 4.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pgcli/auth.py')
-rw-r--r-- | pgcli/auth.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pgcli/auth.py b/pgcli/auth.py index 342c412..2f1e552 100644 --- a/pgcli/auth.py +++ b/pgcli/auth.py @@ -26,7 +26,9 @@ def keyring_initialize(keyring_enabled, *, logger): try: keyring = importlib.import_module("keyring") - except Exception as e: # ImportError for Python 2, ModuleNotFoundError for Python 3 + except ( + ModuleNotFoundError + ) as e: # ImportError for Python 2, ModuleNotFoundError for Python 3 logger.warning("import keyring failed: %r.", e) |