[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,8 +108,9 @@ 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:
|
||||||
logger.critical('...and that failed (Forbidden).')
|
if not os.getenv('DBG_SECRETS'):
|
||||||
raise
|
logger.critical('...and that failed (Forbidden).')
|
||||||
|
raise
|
||||||
|
|
||||||
logger.critical('...and that failed (not found).')
|
logger.critical('...and that failed (not found).')
|
||||||
raise notfound_error
|
raise notfound_error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue