Skip to content

Commit

Permalink
Merge branch 'master' into feature/fix-service-info
Browse files Browse the repository at this point in the history
  • Loading branch information
David Glick authored Dec 6, 2019
2 parents 3f10697 + a233265 commit e94908c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cumulusci/cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def get_keychain_key(self):
try:
key_from_keyring = keyring.get_password("cumulusci", "CUMULUSCI_KEY")
has_functioning_keychain = True
except Exception:
except Exception as e:
keychain_exception = e
key_from_keyring = None
has_functioning_keychain = False
# If no key in environment or file, generate one
Expand All @@ -57,7 +58,8 @@ def get_keychain_key(self):
raise KeychainKeyNotFound(
"Unable to store CumulusCI encryption key. "
"You can configure it manually by setting the CUMULUSCI_KEY "
"environment variable to a random 16-character string."
"environment variable to a random 16-character string. "
f"ERROR: {keychain_exception}"
)
if has_functioning_keychain and not key_from_keyring:
keyring.set_password("cumulusci", "CUMULUSCI_KEY", key)
Expand Down

0 comments on commit e94908c

Please sign in to comment.