changeset 379:47890f38e558

Let getan crash if entry _get_time doesn't return an int It's better to have a traceback when _get_time doesn't return an int then to silently ignore the time.
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 12 Mar 2014 10:57:21 +0100
parents bdc4e45f9f4f
children 20fde79f8e12
files getan/view.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/getan/view.py	Tue Nov 04 17:46:53 2014 +0100
+++ b/getan/view.py	Wed Mar 12 10:57:21 2014 +0100
@@ -213,7 +213,7 @@
         total = 0
         for proj in self.rows:
             tmp = proj._get_time()
-            if tmp and type(tmp) == int:
+            if tmp:
                 total += tmp
         self.set_footer_info("All projects: %s %s"
                              % (proj.mode[1], human_time(total)),
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)