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

Use custom warnings and exceptions #452

Merged
merged 2 commits into from
Aug 7, 2024
Merged

Conversation

Bjwebb
Copy link
Member

@Bjwebb Bjwebb commented Aug 1, 2024

Bjwebb added 2 commits August 1, 2024 16:43
#451

This makes it easier to disambiguate warnings from flatten-tool versus
those from other sources.
#450

This makes it easier to diambiguate errors deliberately raised by
flatten-tool versus those from other sources. I've left alone a few
exceptions that flatten-tool raises, but which we don't expect to
happen, so didn't seem to be in the same category.
@Bjwebb
Copy link
Member Author

Bjwebb commented Aug 1, 2024

@jpmckinney Does this PR resolve your 2 most recent issues?

@jpmckinney
Copy link
Contributor

Looks good, thank you!

@Bjwebb Bjwebb requested a review from R2ZER0 August 2, 2024 15:31
@@ -239,11 +240,13 @@ def unflatten(
"""

if input_format is None:
raise Exception("You must specify an input format (may autodetect in future")
raise FlattenToolError(
"You must specify an input format (may autodetect in future"
Copy link
Contributor

@R2ZER0 R2ZER0 Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this PR, but I'm guessing there's meant to be a ) at the end of the message

Copy link
Contributor

@R2ZER0 R2ZER0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sensible, looks good to me 👍

@Bjwebb Bjwebb merged commit 4d1c5ed into main Aug 7, 2024
28 checks passed
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.

3 participants