Commit 96a3a19f authored by Aurelien Campeas's avatar Aurelien Campeas
Browse files

latst_trinfo : do not crash on absent wf history

branch : stable
parent 034aa14b740a
......@@ -411,7 +411,10 @@ class WorkflowableMixIn(object):
def latest_trinfo(self):
"""return the latest transition information for this entity"""
return self.reverse_wf_info_for[-1]
return self.reverse_wf_info_for[-1]
except IndexError:
return None
def cwetype_workflow(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment