Skip to content

Commit

Permalink
Update ted_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainOfHacks committed Mar 10, 2024
1 parent 303580d commit 9134534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ted_sws/notice_fetcher/adapters/ted_api.py
Original file line number Diff line number Diff line change
@@ -101,7 +101,9 @@ def get_ojs_number_by_date(search_date: date, custom_header: Optional[dict] = No
if search_date_str in date_to_ojs_map.keys():
return int(date_to_ojs_map[search_date_str])
else:
raise Exception(f"Can't get OJS number, for search date: {search_date_str}!")
raise Exception(f"Can't get OJS number, for search date: {search_date_str}!"
f"\nResponse code: {response.status_code}"
f"\nReason: {response.text}")


def get_notice_contents_by_date(search_date: date,

0 comments on commit 9134534

Please sign in to comment.