From f9dc7bc7aa307b96e39905632dd86112349a5e2d Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 4 Oct 2016 12:13:41 +0800 Subject: configs/manager.py: Fix a bug that "_validate()" not working --- fg21sim/configs/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fg21sim/configs') diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py index 18b9024..662c93d 100644 --- a/fg21sim/configs/manager.py +++ b/fg21sim/configs/manager.py @@ -71,7 +71,7 @@ class ConfigManager: results = config.validate(validator, preserve_errors=True) except ConfigObjError as e: raise ConfigError(e.message) - if not results: + if results is not True: error_msg = "" for (section_list, key, res) in flatten_errors(config, results): if key is not None: -- cgit v1.2.2