mirror of https://github.com/dirtbags/moth.git
Merge pull request #93 from dirtbags/v3.3_hotfix
Fixing handling of multiple authors
This commit is contained in:
commit
997c6d4287
|
@ -174,6 +174,10 @@ class Puzzle:
|
|||
def handle_header_key(self, 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':
|
||||
|
|
Loading…
Reference in New Issue