Skip to content

Commit

Permalink
Handle missing 'offline' JSON key
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlentink committed Sep 13, 2024
1 parent 0de986b commit f351e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bible_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def retrieve_api_id():
return api_id

def download_bible_chapters(location, selected_bible_id, selected_bible_abbr, bible_metadata):
offline_location = bible_metadata["offline"]
offline_location = bible_metadata.get("offline", None)

# Download bible using offline yves files
if offline_location is not None:
Expand Down

0 comments on commit f351e70

Please sign in to comment.