Skip to content

Commit

Permalink
Show a bit more infos if the data cannot be fetched from plone.
Browse files Browse the repository at this point in the history
  • Loading branch information
maethu committed Oct 9, 2023
1 parent 6e5cd39 commit bee5e67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/collective/elasticsearch/redis/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def fetch_data(uuid, attributes):
if "@id" in content and "data" in content:
return content["data"]
else:
raise Exception("Bad response from Plone Backend")
raise Exception(
f"Bad response from Plone Backend: {response.status_code} \n {response.content}"
)


def fetch_blob_data(fieldname, data):
Expand Down

0 comments on commit bee5e67

Please sign in to comment.