Commit 3b185df0 authored by Daniel STAN's avatar Daniel STAN
Browse files

secrets_new: Exception -> SecretNotFound pour sudo

parent 9116d304
......@@ -139,7 +139,7 @@ def sudo_loader(name):
raise SecretNotFound()
elif proc.returncode != 0:
raise Exception("Erreur d'appel")
raise SecretNotFound("Erreur d'appel")
last = out.split('\n')[-1]
return json.loads(last)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment