Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tuffnatty
Copy link

No description provided.

@treeform
Copy link
Owner

I think your PR fails to due to issue: nim-lang/Nim#21317

@tuffnatty
Copy link
Author

@treeform Thanks, I also tried to debug it but then noticed that my PR is not the first that's failing this test.

@ringabout
Copy link

fixed => nim-lang/Nim#21320

@tuffnatty
Copy link
Author

@ringabout Thanks!

@tuffnatty
Copy link
Author

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:
Copy link
Owner

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?

@treeform
Copy link
Owner

treeform commented May 2, 2023

Is this important now that the default behavior has changed: nim-lang/Nim#21728 ?

@treeform
Copy link
Owner

treeform commented May 2, 2023

Thank you for the typo fixes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants