From 258d38b9464e9e7a2d9225df4c2bce0879b88485 Mon Sep 17 00:00:00 2001 From: "martin@piware.de" <> Date: Thu, 19 Nov 2009 22:29:23 -0600 Subject: [PATCH] workitems: fix crash on empty list --- workitems.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/workitems.py b/workitems.py index fa40e47..68554fe 100755 --- a/workitems.py +++ b/workitems.py @@ -315,6 +315,8 @@ def csv(db, from_date, to_date): data = workitems_over_time(db) dates = sorted(data.keys()) + if not dates: + return f = _fromstr(from_date or dates[0]) t = _fromstr(to_date or dates[-1]) -- 2.39.5