summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-05-27 14:47:14 +0300
committermakkalot <makkalot@gmail.com>2008-05-27 14:47:14 +0300
commitce08177132f46d8ae0fa636feaa19f157482afa5 (patch)
tree0a433cb8f5a731f772b27f70182e0007ad180453 /func
parente3c15b13bf30494451170fd69bfc227272f8eab1 (diff)
downloadthird_party-func-ce08177132f46d8ae0fa636feaa19f157482afa5.tar.gz
third_party-func-ce08177132f46d8ae0fa636feaa19f157482afa5.tar.xz
third_party-func-ce08177132f46d8ae0fa636feaa19f157482afa5.zip
sometimes fails if there is no attr like that fixed
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))