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 error of unexpected keyword argument for category and labels #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tian3rd
Copy link

@tian3rd tian3rd commented Aug 14, 2023

Description

When running cd examples && python3 demo.py tui, the program throws errors of TypeError: add() got an unexpected keyword argument 'category'.

Why

As suggested by the error messages, 'category' and 'labels` need to be included in the argument parameters.

❯ python demo.py tui
Running python demo.py add 'hello world'
Traceback (most recent call last):
  File "/Users/tian/Documents/ghpr/trogon/examples/demo.py", line 89, in <module>
    cli(obj={})
  File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
TypeError: add() got an unexpected keyword argument 'category'

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

1 participant