diff --git a/monkey/infection_monkey/config.py b/monkey/infection_monkey/config.py index c0e71b64f..5e52022cd 100644 --- a/monkey/infection_monkey/config.py +++ b/monkey/infection_monkey/config.py @@ -71,7 +71,7 @@ class Configuration(object): val_type = type(value) - if isinstance(val_type, types.FunctionType) or isinstance(val_type, types.MethodType): + if callable(value): continue if val_type in (type, ABCMeta):