Detail and message are mostly the same for acme error, use just one to avoid conufsing

This commit is contained in:
Fang-Pen Lin
2025-11-06 19:03:10 -08:00
parent 159eb3138d
commit f11c4084ac
6 changed files with 144 additions and 206 deletions

View File

@@ -251,8 +251,8 @@ def step_impl(context: Context, email: str, kid: str, secret: str, account_var:
)
try:
context.vars[account_var] = acme_client.new_account(registration)
except Exception:
context.vars["error"] = acme_client.new_account(registration)
except Exception as exp:
context.vars["error"] = exp
@then("I register a new ACME account with email {email} without EAB")