Skip to content

Commit 3ef1292

Browse files
Mitigate effect of errors due to NULL values in Postgres Unicode
1 parent b95e99f commit 3ef1292

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

cms/service/EvaluationService.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,14 @@ def write_results_one_object_and_type(
581581
logger.warning(
582582
"Integrity error while inserting worker result.",
583583
exc_info=True)
584+
except Exception:
585+
# Defend against any exception. A poisonous results that fails
586+
# here is attempted again without limits, thus can enter in
587+
# all batches to write. Without the catch-all, it will prevent
588+
# the whole batch to be written over and over. See issue #888.
589+
logger.error(
590+
"Unexpected exception while inserting worker result.",
591+
exc_info=True)
584592

585593
def write_results_one_row(self, session, object_result, operation, result):
586594
"""Write to the DB a single result.

0 commit comments

Comments
 (0)