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