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 errors when dp is executed without any subcommands #3437

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion deepmd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,8 @@
):
deepmd_main = BACKENDS[args.backend]().entry_point_hook
elif args.command is None:
pass
# help message has been printed in parse_args
return

Check warning on line 802 in deepmd/main.py

View check run for this annotation

Codecov / codecov/patch

deepmd/main.py#L802

Added line #L802 was not covered by tests
else:
raise RuntimeError(f"unknown command {args.command}")

Expand Down