Skip to content

Commit

Permalink
common: create_or_update_article error details
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed Jan 25, 2024
1 parent 90ae504 commit 7e2e367
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dags/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,11 @@ def create_or_update_article(data):
data=json.dumps(data),
headers=headers,
)
response.raise_for_status()
return response.json()
try:
response.raise_for_status()
return response.json()
except requests.HTTPError:
response.raise_for_status()
logger.error(response.data)


0 comments on commit 7e2e367

Please sign in to comment.