mirror of https://github.com/dirtbags/moth.git
Merge branch 'master' of https://github.com/dirtbags/moth into v3.4_devel
This commit is contained in:
commit
45aa19355c
|
@ -200,6 +200,10 @@ class Puzzle:
|
||||||
LOGGER.debug("Handling key: %s, value: %s", key, val)
|
LOGGER.debug("Handling key: %s, value: %s", key, val)
|
||||||
if key == 'author':
|
if key == 'author':
|
||||||
self.authors.append(val)
|
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':
|
elif key == 'summary':
|
||||||
self.summary = val
|
self.summary = val
|
||||||
elif key == 'answer':
|
elif key == 'answer':
|
||||||
|
|
Loading…
Reference in New Issue