imports from osgameclones

This commit is contained in:
Trilarion
2019-08-28 14:07:23 +02:00
parent c71a09959e
commit 35f4b0f7b8
56 changed files with 1163 additions and 220 deletions

View File

@ -123,6 +123,11 @@ def parse_entry(content):
# store in info
info[field.lower()] = v
# check that essential fields made it through
for field in ('home', 'state', 'keywords', 'code language', 'code license'):
if field not in info:
raise RuntimeError('Essential field "{}" missing or empty in entry "{}"'.format(field, info['name']))
# now checks on the content of fields
# name should not have spaces at the begin or end