]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
builders: Fix comparisons with None.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Dec 2012 15:37:18 +0000 (16:37 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Dec 2012 15:37:18 +0000 (16:37 +0100)
backend/builders.py

index fd3eace8a8c468850987fb7e46145dc69692a850..b27fea1a6d23f02b93ac801a9336b1b018305f10 100644 (file)
@@ -130,6 +130,9 @@ class Builder(base.Object):
                self._disabled_arches = None
 
        def __cmp__(self, other):
+               if other is None:
+                       return -1
+
                return cmp(self.id, other.id)
 
        @property