-
Notifications
You must be signed in to change notification settings - Fork 30
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
use correct exception in parseCmdArg
#614
Conversation
`parseCmdArg` is expected to raise `ValueError` but for `enr.Record`, `Node`, `PrivateKey`, and `NatConfig`, we raise `ConfigurationError`. Change to `ValueError` instead.
Nim devel error was already present before this PR:
|
Nim 1.6 error was already present before this PR:
This is due to recent |
Right, something I'll have to look into :) |
# at your option. | ||
# This file may not be copied, modified, or distributed except according to | ||
# those terms. | ||
|
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.
should probably have slapped push raises: []
on top here
Status Nim style mandates `{.push raises: []}.` at start of modules. Ensure that's the case so that exceptions are properly tracked. - https://status-im.github.io/nim-style-guide/errors.exceptions.html - status-im/nim-eth#614 (comment)
Status Nim style mandates `{.push raises: []}.` at start of modules. Add a CI task to ensure exceptions keep getting properly tracked. - https://status-im.github.io/nim-style-guide/errors.exceptions.html - status-im/nim-eth#614 (comment)
Status Nim style mandates `{.push raises: []}.` at start of modules. Ensure that's the case so that exceptions are properly tracked. - https://status-im.github.io/nim-style-guide/errors.exceptions.html - status-im/nim-eth#614 (comment)
Status Nim style mandates `{.push raises: []}.` at start of modules. Add a CI task to ensure exceptions keep getting properly tracked. - https://status-im.github.io/nim-style-guide/errors.exceptions.html - status-im/nim-eth#614 (comment)
parseCmdArg
is expected to raiseValueError
but forenr.Record
,Node
,PrivateKey
, andNatConfig
, we raiseConfigurationError
. Change toValueError
instead.