[Pkg-debile-commits] [debile-master] 78/126: feh

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:56:18 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch scan-build-html
in repository debile-master.

commit a3306bc04a9bf5b0c12d26c9e25096482ed54a34
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Mon Jun 10 20:54:41 2013 -0400

    feh
---
 lucy/models/job.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lucy/models/job.py b/lucy/models/job.py
index 9200f1c..5f4cf45 100644
--- a/lucy/models/job.py
+++ b/lucy/models/job.py
@@ -114,7 +114,11 @@ class Job(LucyObject):
         return False
 
     def is_failed(self):
-        return self.get_reports({"failed": False}).count() != 0
+        try:
+            next(self.get_reports({"failed": False}))
+            return False
+        except StopIteration:
+            return True
 
     def is_critical(self):
         if self['type'] in [

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git



More information about the Pkg-debile-commits mailing list