From 850a46b0640818e18e47954df728af6c7f069c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 19 Jun 2006 12:25:26 +0000 Subject: [PATCH] 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 --- product/ERP5/Document/SimulationMovement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/SimulationMovement.py b/product/ERP5/Document/SimulationMovement.py index 953d8f9ef3..9d9431a652 100644 --- a/product/ERP5/Document/SimulationMovement.py +++ b/product/ERP5/Document/SimulationMovement.py @@ -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 -- 2.30.9