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