z1lc / AutoDefine

An add-on to Anki that auto-defines words, optionally adding pronunciation and images.
https://ankiweb.net/shared/info/2136497008
GNU General Public License v2.0
58 stars 17 forks source link

Error #39

Open AbdelrahmanHamdy1996 opened 4 years ago

AbdelrahmanHamdy1996 commented 4 years ago

Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site. Debug info: Anki 2.1.15 (442df9d6) Python 3.8.2 Qt 5.12.8 PyQt 5.14.1 Platform: Linux Flags: frz=False ao=True sv=1 Add-ons possibly involved: AutoDefine - Automatically define vocabulary words with pronunciations and image

Caught exception: File "/usr/share/anki/aqt/webview.py", line 340, in handler cb(val) File "/usr/share/anki/aqt/editor.py", line 351, in self.web.evalWithCallback("saveNow(%d)" % keepFocus, lambda res: callback()) File "/home/abdelrahman/.local/share/Anki2/addons21/2136497008/autodefine.py", line 100, in editor.saveNow(lambda: _get_definition(editor, force_pronounce, force_definition, force_phonetic_transcription)) File "/home/abdelrahman/.local/share/Anki2/addons21/2136497008/autodefine.py", line 276, in _get_definition all_sounds.append(editor.urlToFile(wav_url).strip()) <class 'AttributeError'>: 'NoneType' object has no attribute 'strip'