Skip to content

Commit a1a314e

Browse files
Update ted_api.py
1 parent 8c8b228 commit a1a314e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ted_sws/notice_fetcher/adapters/ted_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import requests
77

88
from ted_sws import config
9+
from ted_sws.event_manager.services.log import log_error
910
from ted_sws.notice_fetcher.adapters.ted_api_abc import TedAPIAdapterABC, RequestAPI
1011

1112
DEFAULT_TED_API_QUERY_RESULT_SIZE = {"pageSize": 100,
@@ -45,7 +46,8 @@ def __call__(self, api_url: str, api_query: dict) -> dict:
4546
response_content = json.loads(response.text)
4647
return response_content
4748
else:
48-
raise Exception(f"The API call failed with: {response}")
49+
raise Exception(f"The TED-API call failed with: {response}")
50+
4951

5052

5153
class TedAPIAdapter(TedAPIAdapterABC):

0 commit comments

Comments
 (0)