entities/wfobjs.py
branchstable
changeset 3770 957e7cffdefb
parent 3765 769dc0107f31
child 3777 3ef8cdb5fb1c
child 3959 e6ecaf93c0ba
--- a/entities/wfobjs.py	Wed Oct 21 13:52:05 2009 +0200
+++ b/entities/wfobjs.py	Wed Oct 21 13:52:16 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):