entities/wfobjs.py
changeset 3777 3ef8cdb5fb1c
parent 3722 c414f402cbff
parent 3765 769dc0107f31
child 3998 94cc7cad3d2d
--- a/entities/wfobjs.py	Mon Oct 19 20:22:01 2009 +0200
+++ b/entities/wfobjs.py	Wed Oct 21 17:32:20 2009 +0200
@@ -412,7 +412,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):