Open victorlin opened 10 months ago
I think real users will only ever have access to one user pool, so this seems developer-facing.
In this case it'd be helpful to not only provide instructions to remedy (great!) but also a possible explanation as to why this happened.
Current Behavior
Output is an unhandled exception:
Expected behavior
Output is an error message with instructions to remediate.
Possible solution
Catch the
PyJWKClientError
and throw aNextstrainCliError
with a meaningful message. Example:Your environment: if running Nextstrain locally
Nextstrain CLI version 7.4.0
Additional context
I think real users will only ever have access to one user pool, so this seems developer-facing. That stays the case even with #333 where it'd be one user pool per remote. However, if a user happens to edit their secrets file directly, that can cause a similar unhandled exception.