From bedb10416562973ca8f5f18f18f1563c5ff10274 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 8 Jan 2008 20:53:47 +0000 Subject: [PATCH] only import callable classes that have the 'status' attribute --- qaapi/qa/QAAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qaapi/qa/QAAPI.py b/qaapi/qa/QAAPI.py index d632368..056d7a5 100644 --- a/qaapi/qa/QAAPI.py +++ b/qaapi/qa/QAAPI.py @@ -97,7 +97,7 @@ class QAAPI: for attribute in dir(module): attr = getattr(module, attribute) - if callable(attr): + if callable(attr) and hasattr(attr, 'status'): setattr(attr, 'mod_name', module_basename+"."+attribute) callables.append(attr(self.config)) return callables -- 2.47.0