Merge branch 'master' of https://github.com/dirtbags/moth into v3.4_devel

This commit is contained in:
John Donaldson 2019-11-08 19:31:12 +00:00
commit 45aa19355c
1 changed files with 4 additions and 0 deletions

View File

@ -200,6 +200,10 @@ class Puzzle:
LOGGER.debug("Handling key: %s, value: %s", key, val)
if key == 'author':
self.authors.append(val)
elif key == 'authors':
if not isinstance(val, list):
raise ValueError("Authors must be a list, got %s, instead" & (type(val),))
self.authors = list(val)
elif key == 'summary':
self.summary = val
elif key == 'answer':