From 1b7d24bfecf0a0b5397951129dae8fe8dee1dfa6 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Tue, 19 Nov 2019 15:03:51 +0200 Subject: [PATCH] Fixes a bug in config, where methods are included into config. --- monkey/infection_monkey/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):