branch | stable |
changeset 3765 | 769dc0107f31 |
parent 3757 | 122a01751d59 |
child 3777 | 3ef8cdb5fb1c |
child 3959 | e6ecaf93c0ba |
--- a/entities/wfobjs.py Wed Oct 21 09:47:55 2009 +0200 +++ b/entities/wfobjs.py Wed Oct 21 11:19:54 2009 +0200 @@ -411,7 +411,10 @@ def latest_trinfo(self): """return the latest transition information for this entity""" - return self.reverse_wf_info_for[-1] + try: + return self.reverse_wf_info_for[-1] + except IndexError: + return None @cached def cwetype_workflow(self):