Commit 850a46b0 authored by Jérome Perrin's avatar Jérome Perrin

fix redefining builtin exception name in except clause; from Patrick Gerken.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7857 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 57dc952e
......@@ -163,7 +163,7 @@ class SimulationMovement(Movement):
try:
parent_state = self.aq_parent.getSimulationState()
return parent_to_movement_simulation_state[parent_state]
except KeyError, AttributeError:
except (KeyError, AttributeError):
LOG('ERP5 WARNING:',100, 'Could not acquire getSimulationState on %s'
% self.getRelativeUrl())
return None
......
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