Skip to content
Snippets Groups Projects
Commit 82014c1b authored by NolanB's avatar NolanB
Browse files

Change the output of the exception to .__repr__() instead of str

parent c1a5c92b
No related branches found
No related tags found
1 merge request!180Change the output of the exception to .__repr__() instead of str
Pipeline #79292 passed
......@@ -201,7 +201,9 @@ class ElementsWorker(
if isinstance(e, ErrorResponse):
message = f"An API error occurred while processing element {element_id}: {e.title} - {e.content}"
else:
message = f"Failed running worker on element {element_id}: {e}"
message = (
f"Failed running worker on element {element_id}: {e.__repr__()}"
)
logger.warning(
message,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment