summaryrefslogtreecommitdiffstats
path: root/pgcli/auth.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-11-01 04:38:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-11-01 04:38:10 +0000
commit6ad5e5b3d0d0029af2401594ecc398fcb6bc9ff5 (patch)
tree4a648e2fca058a515ad4dfe12302bb9d41ca1c7d /pgcli/auth.py
parentReleasing debian version 3.5.0-5. (diff)
downloadpgcli-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.py4
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)