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

Fix the __repr__() with the review in __init__.py

parent 82014c1b
No related branches found
No related tags found
1 merge request!180Change the output of the exception to .__repr__() instead of str
Pipeline #79296 passed
......@@ -202,7 +202,7 @@ class ElementsWorker(
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.__repr__()}"
f"Failed running worker on element {element_id}: {repr(e)}"
)
logger.warning(
......
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