Skip to content

The agent that grows with you

fix(free-tier): classify_mint_exception keeps an uncoded AuthError's wait hint

kshitijk4poor95dba8d9a5e9
diff --git a/hermes_cli/anon_auth.py b/hermes_cli/anon_auth.py
index 055497a1681..9cb4201be07 100644
--- a/hermes_cli/anon_auth.py
+++ b/hermes_cli/anon_auth.py
@@ -453,7 +453,7 @@ def classify_mint_exception(exc: BaseException) -> AuthError:
except Exception: # httpx unavailable (lazy proxy): the stdlib set stands
pass
code = ANON_UNREACHABLE if isinstance(exc, transport) else ANON_SERVER_ERROR
- wrapped = _anon_err(ANON_FAILURE_COPY[code], code)
+ wrapped = _anon_err(ANON_FAILURE_COPY[code], code, retry_after=getattr(exc, "retry_after", None))
wrapped.__cause__ = exc
return wrapped