Skip to content
Snippets Groups Projects
Commit f7fe1424 authored by Nolan's avatar Nolan Committed by Yoann Schneider
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 #79301 passed
...@@ -201,7 +201,9 @@ class ElementsWorker( ...@@ -201,7 +201,9 @@ class ElementsWorker(
if isinstance(e, ErrorResponse): if isinstance(e, ErrorResponse):
message = f"An API error occurred while processing element {element_id}: {e.title} - {e.content}" message = f"An API error occurred while processing element {element_id}: {e.title} - {e.content}"
else: else:
message = f"Failed running worker on element {element_id}: {e}" message = (
f"Failed running worker on element {element_id}: {repr(e)}"
)
logger.warning( logger.warning(
message, 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