Skip to content

Commit

Permalink
fix (ElasticSearchDB): convert exception object to string representation
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Nov 17, 2023
1 parent 16769a7 commit 838b43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DIRAC/Core/Utilities/ElasticSearchDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def bulk_index(self, indexPrefix, data=None, mapping=None, period="day", withTim
res = bulk(client=self.client, index=indexName, actions=generateDocs(data, withTimeStamp))
except (BulkIndexError, RequestError) as e:
sLog.exception()
return S_ERROR(e)
return S_ERROR(f"Failed to index by bulk {e!r}")

if res[0] == len(data):
# we have inserted all documents...
Expand Down

0 comments on commit 838b43a

Please sign in to comment.