diff --git a/mslib/utils/auth.py b/mslib/utils/auth.py index f2a0dd739..e5bda23be 100644 --- a/mslib/utils/auth.py +++ b/mslib/utils/auth.py @@ -64,7 +64,7 @@ def get_password_from_keyring(service_name=NAME, username=""): return None else: return cred.password - except keyring.errors.KeyringLocked as ex: + except (keyring.errors.KeyringLocked, keyring.errors.InitError) as ex: logging.warn(ex) return None