check that classes function returns a tuple of length 3

This commit is contained in:
Marcus Stoegbauer 2019-06-15 11:30:11 +02:00
parent 22bd6ed278
commit 104fe407ef
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class Checks(object):
if c.startswith("__"):
continue
ret = getattr(self, c)()
if len(ret) == 3:
if type(ret) == tuple and len(ret) == 3:
classes.append(ret)
return map(lambda k: (k[1], k[2]), sorted(classes, key=lambda k: k[0]))