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/argparse warning #576

Merged

Conversation

eugen-ajechiloae-clearml
Copy link
Collaborator

When there is an issue patching the Argparser raise a warning for the user (so it won't fail running remotely).

if not PatchArgumentParser._original_parse_args
else PatchArgumentParser._original_parse_args(self, args=args, namespace=namespace)
)
warnings.warn("Error when patching arguments: %s" % e)
Copy link
Member

Choose a reason for hiding this comment

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

If this is specific to argparse, I think the error should mention argparse, something like "Failed patching argparse arguments: %s"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

now having more relevant warnings

@jkhenning jkhenning merged commit ba2e349 into allegroai:master Feb 13, 2022
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

3 participants