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

word query doesn't query words #98

Open
Bercio opened this issue Sep 6, 2018 · 0 comments
Open

word query doesn't query words #98

Bercio opened this issue Sep 6, 2018 · 0 comments

Comments

@Bercio
Copy link

Bercio commented Sep 6, 2018

Wrong behavior

Traceback (most recent call last):
File "/home/bercio/.local/share/Anki2/addons/wquery/init.py", line 38, in callback
return func(obj)
File "/home/bercio/.local/share/Anki2/addons/wquery/query.py", line 126, in query_from_editor_current_field
results = query_single_fld(editor.note, fld_index)
File "/home/bercio/.local/share/Anki2/addons/wquery/query.py", line 204, in wrap
query_func(*args, **kwargs)
File "/home/bercio/.local/share/Anki2/addons/wquery/query.py", line 243, in query_single_fld
return QueryResult()
File "/home/bercio/.local/share/Anki2/addons/wquery/service/base.py", line 425, in init
if self['result'] == None:
KeyError: 'result'

When it happened

using the addon to query a field both from the browser window and the add window

Anki v. :Traceback (most recent call last):
  File "/home/bercio/.local/share/Anki2/addons/wquery/__init__.py", line 38, in callback
    return func(obj)
  File "/home/bercio/.local/share/Anki2/addons/wquery/query.py", line 126, in query_from_editor_current_field
    results = query_single_fld(editor.note, fld_index)
  File "/home/bercio/.local/share/Anki2/addons/wquery/query.py", line 204, in wrap
    query_func(*args, **kwargs)
  File "/home/bercio/.local/share/Anki2/addons/wquery/query.py", line 243, in query_single_fld
    return QueryResult()
  File "/home/bercio/.local/share/Anki2/addons/wquery/service/base.py", line 425, in __init__
    if self['result'] == None:
KeyError: 'result'

anki version: 2.0.52,Qt 4.8.1 PyQt 4.9.1
ubuntu version 17.04

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

1 participant