-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix misleading message on generate-key
#681
Conversation
if len(crypto_registry.supported_ids) == 0: | ||
raise click.ClickException("No ledger installation found") | ||
|
||
if value not in crypto_registry.supported_ids and value != self.ALL: | ||
raise click.ClickException( | ||
f"Invalid identifier provided `{value}`; " | ||
f"Available ledger identifiers {crypto_registry.supported_ids}" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better error messages
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #681 +/- ##
=======================================
Coverage 91.97% 91.97%
=======================================
Files 371 371
Lines 29591 29607 +16
=======================================
+ Hits 27216 27232 +16
Misses 2375 2375
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -259,6 +259,34 @@ def convert(self, value: str, param: Any, ctx: click.Context) -> Dependency: | |||
raise click.ClickException(str(e)) from e | |||
|
|||
|
|||
class LedgerChoice(click.ParamType): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice utility!
Proposed changes
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
Fixes
fixes #650
Types of changes
What types of changes does your code introduce to agents-aea?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply.develop
branch (left side). Also you should start your branch off ourdevelop
.