check that classes function returns a tuple of length 3
This commit is contained in:
parent
22bd6ed278
commit
104fe407ef
@ -30,7 +30,7 @@ class Checks(object):
|
|||||||
if c.startswith("__"):
|
if c.startswith("__"):
|
||||||
continue
|
continue
|
||||||
ret = getattr(self, c)()
|
ret = getattr(self, c)()
|
||||||
if len(ret) == 3:
|
if type(ret) == tuple and len(ret) == 3:
|
||||||
classes.append(ret)
|
classes.append(ret)
|
||||||
return map(lambda k: (k[1], k[2]), sorted(classes, key=lambda k: k[0]))
|
return map(lambda k: (k[1], k[2]), sorted(classes, key=lambda k: k[0]))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user