Skip to content
This repository was archived by the owner on Apr 6, 2022. It is now read-only.

Commit 9860b94

Browse files
author
Jason Snow
committed
Remove redundent check of json response
1 parent 5749819 commit 9860b94

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

youversion/youversion.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,6 @@ def get_all_verse_of_the_days(self, limit: int = 366, page: int = 1) -> Tuple[bo
421421
list of VerseOfTheDay objects
422422
"""
423423
json = self._get('verse_of_the_day', params={'version_id': self.bible_version.id})
424-
if not json or 'data' not in json:
425-
return False, 0, None
426-
427424
votds = [VerseOfTheDay(bible_version=self.bible_version, json=data) for data in json.get('data', [])]
428425
next_page = json.get('next_page', False)
429426
page_size = json.get('page_size', len(votds))

0 commit comments

Comments
 (0)