Arthur-Milchior / anki-enhanced-cloze

GNU General Public License v3.0
2 stars 1 forks source link

error while searching in the browser or closing anki #9

Closed marcozer closed 5 years ago

marcozer commented 5 years ago

I get this addon error : (after updating to the last version)

Debug info:
Anki 2.1.13 (3ba55990) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Linux
Flags: frz=True ao=True sv=2
Add-ons possibly involved: Enhanced cloze 21

Caught exception:
  File "aqt/browser.py", line 571, in onSearchActivated
  File "/home/marcozer/.local/share/Anki2/addons21/2062736101/src/__init__.py", line 208, in on_save_now
    return _oldSaveNow(self, callback, keepFocus=False)
<class 'NameError'>: name 'callback' is not defined

and while closing anki :

Debug info:
Anki 2.1.13 (3ba55990) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Linux
Flags: frz=True ao=True sv=2
Add-ons possibly involved: Enhanced cloze 21, Opening the same window multiple time, Web Browser - Search selection Import texts and images automatically

Caught exception:
  File "/home/marcozer/.local/share/Anki2/addons21/864545277/browser.py", line 85, in clozeBrowser
    fn(evt)
  File "aqt/main.py", line 805, in closeEvent
  File "aqt/main.py", line 311, in unloadProfileAndExit
  File "aqt/main.py", line 286, in unloadProfile
  File "aqt/main.py", line 379, in unloadCollection
  File "aqt/main.py", line 632, in closeAllWindows
  File "/home/marcozer/.local/share/Anki2/addons21/354407385/multiple.py", line 140, in closeAll
    instance.closeWithCallback(callback)
  File "aqt/browser.py", line 525, in closeWithCallback
  File "/home/marcozer/.local/share/Anki2/addons21/2062736101/src/__init__.py", line 208, in on_save_now
    return _oldSaveNow(self, callback, keepFocus=False)
<class 'NameError'>: name 'callback' is not defined

Thank you for your help

ijgnd commented 5 years ago

I'm just a happy user.

I don't get this error anymore with the latest version from ankiweb. I would update the add-ons and try again. If you still get the error post this here?