Commit 320d96ce authored by Alexandre Boeglin's avatar Alexandre Boeglin

recatch ValueError in _checkConsistency ...


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8491 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e65716b6
...@@ -668,12 +668,11 @@ class XMLMatrix(Folder): ...@@ -668,12 +668,11 @@ class XMLMatrix(Folder):
is_int = 1 is_int = 1
test_num = None test_num = None
while base_id_len > 0: while base_id_len > 0:
# XXX it is bad to use except without exception name ! try:
# try:
# if this succeeds, it is very likely a cell with an id such as quantity_X_Y_0_Z # if this succeeds, it is very likely a cell with an id such as quantity_X_Y_0_Z
test_num = int(object_id_split[base_id_len-1]) test_num = int(object_id_split[base_id_len-1])
# except: except ValueError:
# is_int = 0 is_int = 0
if not is_int: break if not is_int: break
base_id_len -= 1 base_id_len -= 1
if base_id_len > 0: if base_id_len > 0:
......
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