changeset 8695 | 358d8bed9626 |
parent 8556 | bbe0d6985e59 |
child 9469 | 032825bbacab |
--- a/hooks/workflow.py Thu Feb 14 15:39:23 2013 +0100 +++ b/hooks/workflow.py Thu Feb 14 15:38:25 2013 +0100 @@ -325,7 +325,7 @@ entity = self._cw.entity_from_eid(self.eidfrom) try: entity.cw_set(modification_date=datetime.now()) - except RepositoryError, ex: + except RepositoryError as ex: # usually occurs if entity is coming from a read-only source # (eg ldap user) self.warning('cant change modification date for %s: %s', entity, ex)