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

TypeError: onDialogOpened() got an unexpected keyword argument 'search' #147

Closed
masonc15 opened this issue Feb 2, 2022 · 2 comments
Closed

Comments

@masonc15
Copy link

masonc15 commented Feb 2, 2022

Hello,

I am having an issue where when I am creating a card and it is a duplicate and I click on "Show Duplicates", I get the following error which seems to be related to this addon. Any help would be appreciated.

Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-02-01 20:45:16

Caught exception:
Traceback (most recent call last):
  File "aqt\webview.py", line 41, in cmd
  File "aqt\webview.py", line 142, in _onCmd
  File "aqt\webview.py", line 595, in _onBridgeCmd
  File "decorator.py", line 232, in fun
  File "anki\hooks.py", line 89, in decorator_wrapper
  File "anki\hooks.py", line 86, in repl
  File "C:\Users\darks\AppData\Roaming\Anki2\addons21\24411424\custom_shortcuts.py", line 383, in cs_captureBridgeToggleSticky
    return _old(self,cmd)
  File "aqt\editor.py", line 438, in onBridgeCmd
  File "aqt\editor.py", line 564, in showDupes
  File "decorator.py", line 232, in fun
  File "anki\hooks.py", line 89, in decorator_wrapper
  File "anki\hooks.py", line 81, in repl
TypeError: onDialogOpened() got an unexpected keyword argument 'search'

Thanks.

@Liresol
Copy link
Owner

Liresol commented Feb 2, 2022

Hello,
Sorry for the inconvenience, but this looks like it's either an addon interaction or another addon entirely.
The particular function onDialogOpened() isn't in this addon or in vanilla Anki, so it might be another addon (actually it looks like you found it already), and since one of the ways to trigger it is a shortcut, the code path gets wired through this addon as well.
If it really is an addon interaction, then I can try to mitigate this issue but at this point I'm not sure whether there's anything I can do.

@masonc15
Copy link
Author

masonc15 commented Feb 2, 2022

Yep, looks to be an issue with the Speed Focus addon, not this one. Sorry about the false issue, just got confused when this addon's ID was included in the error output. Thanks for the response! I'll close this out.

@masonc15 masonc15 closed this as completed Feb 2, 2022
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