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 f6b4acb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dags/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,9 @@ 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:
logger.error(response.content)
raise

0 comments on commit f6b4acb

Please sign in to comment.