-
Notifications
You must be signed in to change notification settings - Fork 34
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 BareExcept warnings on Nim 2.0rc1 #58
base: master
Are you sure you want to change the base?
Conversation
I think your PR fails to due to issue: nim-lang/Nim#21317 |
@treeform Thanks, I also tried to debug it but then noticed that my PR is not the first that's failing this test. |
fixed => nim-lang/Nim#21320 |
@ringabout Thanks! |
The CI build uses Nim 1.6.12 now, and the tests are green. |
@@ -116,8 +116,8 @@ proc parseHook*(s: string, i: var int, v: var SomeSignedInt) = | |||
parseHook(s, i, v2) | |||
try: | |||
v = type(v)(v2) | |||
except: | |||
error("Number type to small to contain the number.", i) | |||
except CatchableError: |
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.
Is this error actually CatchableError? I have not tested.
Could you make a test case for this and see what the behavior is?
Is this important now that the default behavior has changed: nim-lang/Nim#21728 ? |
Thank you for the typo fixes! |
No description provided.