sokoban-like, tetris-like to inspirations

This commit is contained in:
Trilarion
2020-09-04 17:20:31 +02:00
parent ba30bdcc82
commit b1fc6617f8
32 changed files with 60 additions and 35 deletions

View File

@ -571,6 +571,7 @@ def read_entries():
entries = []
# iterate over all entries
exception_happened = False
for file, _, content in entry_iterator():
if not content.endswith('\n'):
@ -587,10 +588,13 @@ def read_entries():
check_entry(entry)
except Exception as e:
print('{} - {}'.format(file, e))
exception_happened = True
continue
# add to list
entries.append(entry)
if exception_happened:
raise RuntimeError('errors while reading entries')
return entries