From 13a8ed1c4e1a71bb5ebe7b32e1f2a4287066f2a2 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Mon, 8 Dec 2014 14:45:48 +0100 Subject: [PATCH] fix TypeError in getModificationDate(). that can happen if there is a workflow entry whose value is None. --- product/ERP5Type/Base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index 894f3b1175..e629e485e0 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -3124,7 +3124,7 @@ class Base( CopyContainer, for history in history_list.itervalues(): try: date = history[-1]['time'] - except (IndexError, KeyError): + except (IndexError, KeyError, TypeError): continue if date > max_date: max_date = date -- 2.30.9