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

When no args or flags are passed, CLI version of amypet raises an error #27

Open
jhuguetn opened this issue Nov 9, 2022 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@jhuguetn
Copy link

jhuguetn commented Nov 9, 2022

Perhaps in such cases the application could just dump the help or usage instead of an error trace. See current behaviour below:

root@d1c0b0de67d6:/# amypet
Traceback (most recent call last):
  File "/usr/local/bin/amypet", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/amypet/gui.py", line 326, in main
    opts = parser.parse_args(args=args)
  File "/usr/local/lib/python3.8/argparse.py", line 1768, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/local/lib/python3.8/argparse.py", line 1800, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/local/lib/python3.8/argparse.py", line 2035, in _parse_known_args
    ', '.join(required_actions))
TypeError: sequence item 0: expected str instance, NoneType found
@casperdcl casperdcl added the bug Something isn't working label Nov 25, 2022
@casperdcl casperdcl self-assigned this Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants