1

Fixing bug that triggers when a Kanji character has no kun-yomi or

on-yomi.
This commit is contained in:
Alex Yatskov 2016-05-21 10:22:03 -07:00
parent 630024a2fc
commit 71f2e0ff67
2 changed files with 3 additions and 3 deletions

View File

@ -17,5 +17,5 @@
c = {
'appVersion': '0.20b',
'appVersion': '0.21b',
}

View File

@ -84,8 +84,8 @@ class Dictionary:
return {
'id': kanjiId,
'character': character,
'kunyomi': kunyomi.split(),
'onyomi': onyomi.split(),
'kunyomi': [] if kunyomi is None else kunyomi.split(),
'onyomi': [] if onyomi is None else onyomi.split(),
'glossary': glossary
}