Skip to content

Commit

Permalink
Don't exit when finding URL without date
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Dec 18, 2019
1 parent 5cb53a2 commit eab95cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/libeoaconvert.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,10 @@ def format_hyperlinks_django_epub(xmlHyperlink, strLanguage):
xmlHyperlink.tail = f", {formatted_date}{url_tail}"
xmlHyperlink.text = strURL
else:
logging.error(f"Found no accessed date at url {strURL}. Exiting.")
sys.exit()

logging.warning(f"Found no accessed date at url {strURL}. Proceeding without accessed date.")
url_tail = xmlHyperlink.tail
xmlHyperlink.tail = f"{url_tail}"
xmlHyperlink.text = strURL
return
# def format_hyperlinks_django_epub ends here

Expand Down

0 comments on commit eab95cd

Please sign in to comment.