# HG changeset patch # User Oleksandr Gavenko # Date 1475085777 -10800 # Node ID 1ddf73757bff2af42e3b22e31d276e027a17c384 # Parent d58bd4c13948e1d1149e2f2391a4f42aac2f2330 Fix: TypeError: 'NoneType' object is not iterable. diff -r d58bd4c13948 -r 1ddf73757bff py/gadict_srs_tab.py --- a/py/gadict_srs_tab.py Wed Sep 28 20:58:56 2016 +0300 +++ b/py/gadict_srs_tab.py Wed Sep 28 21:02:57 2016 +0300 @@ -71,7 +71,7 @@ FOUT.write("
") else: FOUT.write(" ") - for (lang, tr) in sense.tr_list: + for (lang, tr) in sense.tr_list or []: tr = tr.replace('\n', ' ') if LANGS is None: FOUT.write(tr)