summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
Diffstat (limited to 'func')
-rw-r--r--func/minion/modules/func_module.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/func/minion/modules/func_module.py b/func/minion/modules/func_module.py
index d05af66..b13d3ac 100644
--- a/func/minion/modules/func_module.py
+++ b/func/minion/modules/func_module.py
@@ -89,12 +89,15 @@ class FuncModule(object):
@param name: the name of the method
@retun : dict(name:[arg1,arg2...]) or {}
"""
+ #we dont need them actually
+ if name in self.__base_methods.keys():
+ return {}
- if not self.__is_public_valid_method(name):
+ #tests showed that sometimes happens
+ if not hasattr(self,name):
return {}
- #we dont need them actually
- if name in self.__base_methods.keys():
+ if not self.__is_public_valid_method(name):
return {}
arg_names = inspect.getargspec(getattr(self,name))