Commit a4274276 authored by Titouan Soulard's avatar Titouan Soulard

erp5_core: fix `TypeError` on raise in `Base_edit`

String value raised with `ValueError` had an extra `%s` at the end, hence
raising another error when formatting:

> TypeError: not enough arguments for format string

This commit simply removes the extra formatting character, since I could not
guess what should have been printed here.
parent 4aec00c2
Pipeline #38723 failed with stage
in 0 seconds
...@@ -186,7 +186,7 @@ def editMatrixBox(matrixbox_field, matrixbox): ...@@ -186,7 +186,7 @@ def editMatrixBox(matrixbox_field, matrixbox):
else: else:
raise ValueError("Could not create cell %s" % str(cell_index_tuple)) raise ValueError("Could not create cell %s" % str(cell_index_tuple))
else: else:
raise ValueError("Cell %s does not exist %s" % str(cell_index_tuple)) raise ValueError("Cell %s does not exist" % str(cell_index_tuple))
field_prefix_len = len(field_prefix) field_prefix_len = len(field_prefix)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment