[secrets_new] In debug mode, on raise notfound
This commit is contained in:
parent
394597c186
commit
7ed5d5e829
1 changed files with 3 additions and 2 deletions
|
@ -108,6 +108,7 @@ def get(name):
|
||||||
except SecretNotFound as exc:
|
except SecretNotFound as exc:
|
||||||
notfound_error = notfound_error or exc
|
notfound_error = notfound_error or exc
|
||||||
except SecretForbidden:
|
except SecretForbidden:
|
||||||
|
if not os.getenv('DBG_SECRETS'):
|
||||||
logger.critical('...and that failed (Forbidden).')
|
logger.critical('...and that failed (Forbidden).')
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue