X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6e295f0db470467f3a3bf9ff46a4ed5e8f052229..f8e76735cc10d9132eb7ca761b0257c50b0c1a10:/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')