FooSoft / yomichan-anki

Plugin for sentence/vocab mining Japanese books in Anki.
https://foosoft.net/projects/yomichan-anki
Other
58 stars 12 forks source link

AttributeError: 'NoneType' object has no attribute 'split' #13

Closed Erlemar closed 8 years ago

Erlemar commented 8 years ago

Hello again!

I have a new problem: when I try to see definitions of certain kanji, for example when I put mouse on 刹 in 刹那的 I receive the following error.

Traceback (most recent call last): File "C:\Users\Andrey\Documents\Anki\addons\yomi_base\reader.py", line 336, in onContentMousePress self.updateSampleMouseEvent(event) File "C:\Users\Andrey\Documents\Anki\addons\yomi_base\reader.py", line 487, in updateSampleMouseEvent self.updateSampleFromPosition() File "C:\Users\Andrey\Documents\Anki\addons\yomi_base\reader.py", line 519, in updateSampleFromPosition self.state.kanjiDefs = self.language.findKanji(contentSampleFlat[:lengthMatched]) File "C:\Users\Andrey\Documents\Anki\addons\yomi_base\japanese\translate.py", line 69, in findKanji match = self.dictionary.findKanji(c) File "C:\Users\Andrey\Documents\Anki\addons\yomi_base\japanese\dictionary.py", line 87, in findKanji 'kunyomi': kunyomi.split(), AttributeError: 'NoneType' object has no attribute 'split'

This happens in Desktop version on Windows 10.

FooSoft commented 8 years ago

Yikes! I missed this when switching dictionary formats. Should be fixed now if you update to 0.21b

Erlemar commented 8 years ago

Thank you! The problem is fixed now.