From 9134534c5498e0e4a7a1d13c21b1beb56434294c Mon Sep 17 00:00:00 2001 From: CaptainOfHacks <39195263+CaptainOfHacks@users.noreply.github.com> Date: Sun, 10 Mar 2024 19:12:04 +0200 Subject: [PATCH] Update ted_api.py --- ted_sws/notice_fetcher/adapters/ted_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ted_sws/notice_fetcher/adapters/ted_api.py b/ted_sws/notice_fetcher/adapters/ted_api.py index 42d5a639..3ff7abd6 100644 --- a/ted_sws/notice_fetcher/adapters/ted_api.py +++ b/ted_sws/notice_fetcher/adapters/ted_api.py @@ -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,