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

Crash with word "fazer" #7

Open
jorgesumle opened this issue Apr 5, 2022 · 1 comment
Open

Crash with word "fazer" #7

jorgesumle opened this issue Apr 5, 2022 · 1 comment

Comments

@jorgesumle
Copy link

I want to see the conjugations for Portuguese verbs. I tried this program, but it crashed when I searched for "fazer" (wkdict fazer):

  File "/usr/local/bin/wkdict", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/wkdict/command.py", line 19, in main
    ret = parseJSON(word, resjson, limit)
  File "/usr/local/lib/python3.9/dist-packages/wkdict/wkdict.py", line 37, in parseJSON
    if len(table[0]["definitions"]) < 1:
IndexError: list index out of range

Also, I want to search only in Portuguese. Is there a way to specify that, like a -l command-line option?

@FallCheetah7373
Copy link

can confirm.

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

No branches or pull requests

2 participants