changeset 491:f1be9657c1d2

skip reports without a status and status starttime
author Bjoern Ricks <bricks@intevation.de>
date Thu, 30 Sep 2010 09:38:40 +0000
parents 73a2e603a23b
children 93d66243bce7
files treepkg/report.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/report.py	Wed Sep 29 19:25:52 2010 +0000
+++ b/treepkg/report.py	Thu Sep 30 09:38:40 2010 +0000
@@ -102,6 +102,8 @@
         revisions = []
         for column, track in enumerate(self.tracks):
             for revision in track.get_revisions():
+                if not revision.status or not revision.status.start:
+                    continue
                 revisions.append((revision.status.start,
                                   struct(revno=revision.revision,
                                          revision=revision,
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)