Commit 13a8ed1c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix TypeError in getModificationDate().

that can happen if there is a workflow entry whose value is None.
parent 1b062408
...@@ -3124,7 +3124,7 @@ class Base( CopyContainer, ...@@ -3124,7 +3124,7 @@ class Base( CopyContainer,
for history in history_list.itervalues(): for history in history_list.itervalues():
try: try:
date = history[-1]['time'] date = history[-1]['time']
except (IndexError, KeyError): except (IndexError, KeyError, TypeError):
continue continue
if date > max_date: if date > max_date:
max_date = date max_date = date
......
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