Skip to content

Commit

Permalink
nytimes: add additional error to catch (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisparker authored Jan 11, 2024
1 parent 0936536 commit 239b1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xword_dl/downloader/newyorktimesdownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def parse_xword(self, xword_data):
try:
suitable_answer = unidecode(square.get('answer') or
square['moreAnswers']['valid'][0])
except IndexError:
except (IndexError, KeyError):
raise XWordDLException('Unable to parse puzzle JSON. Possibly something .puz incompatible')

solution += suitable_answer[0]
Expand Down

0 comments on commit 239b1b4

Please sign in to comment.