X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6e295f0db470467f3a3bf9ff46a4ed5e8f052229..65de6f33ab7154135a2f934df9ad53d7c82cec22:/scripts/make-locale-pack-json.py?ds=inline diff --git a/scripts/make-locale-pack-json.py b/scripts/make-locale-pack-json.py index 5bd30504a..f75cf1717 100755 --- a/scripts/make-locale-pack-json.py +++ b/scripts/make-locale-pack-json.py @@ -20,6 +20,8 @@ for ip in data: dst3 = os.path.join(dst2, ip['fields']['slug']) mkdir(dst3) for fld, val in ip['fields'].items(): + if val is None: + val = '' if filter(lambda x: fld.startswith(x), ['title', 'left_column', 'right_column']): o = open(os.path.join(dst3, fld+".txt"),'w')