Skip to content

Commit 28760bf

Browse files
committed
Added NoKeyringError exception
1 parent f06c3e3 commit 28760bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

simvue/utilities.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ def get_auth():
239239
# If the keyring is stored under a different user
240240
# to the logged in user
241241
with contextlib.suppress(
242-
configparser.NoOptionError, configparser.NoSectionError
242+
configparser.NoOptionError,
243+
configparser.NoSectionError,
244+
keyring.errors.NoKeyringError,
243245
):
244246
keyring_user = config.get("server", "keyring_user")
245247

0 commit comments

Comments
 (0)