X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6e295f0db470467f3a3bf9ff46a4ed5e8f052229..eb6556f39bd39099b23e2fc9b85772857846f9dd:/scripts/make-locale-pack-json.py?ds=sidebyside 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')