Skip to content

Commit 838b43a

Browse files
committed
fix (ElasticSearchDB): convert exception object to string representation
1 parent 16769a7 commit 838b43a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DIRAC/Core/Utilities/ElasticSearchDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def bulk_index(self, indexPrefix, data=None, mapping=None, period="day", withTim
503503
res = bulk(client=self.client, index=indexName, actions=generateDocs(data, withTimeStamp))
504504
except (BulkIndexError, RequestError) as e:
505505
sLog.exception()
506-
return S_ERROR(e)
506+
return S_ERROR(f"Failed to index by bulk {e!r}")
507507

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

0 commit comments

Comments
 (0)