Skip to content

Commit

Permalink
Check notifications is not None before using
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Dec 5, 2022
1 parent eb5a340 commit 2638fa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def download_wiktionary(
if lemma_lang in CJK_LANGS:
install_deps("wiktionary_cjk", None, notifications)

notifications.put((0, f"Downloading {lemma_lang}-{gloss_lang} Wiktionary file"))
if notifications:
notifications.put((0, f"Downloading {lemma_lang}-{gloss_lang} Wiktionary file"))
url = f"https://github.com/xxyzz/Proficiency/releases/download/v{PROFICIENCY_VERSION}/wiktionary_{lemma_lang}_{gloss_lang}_v{PROFICIENCY_VERSION}.tar.gz"
extract_folder = custom_lemmas_folder(get_plugin_path())
with urlopen(url) as r:
Expand Down

0 comments on commit 2638fa8

Please sign in to comment.