diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-10-04 12:13:41 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-10-04 12:13:41 +0800 |
commit | f9dc7bc7aa307b96e39905632dd86112349a5e2d (patch) | |
tree | a31b8f91148598231a1d5b7d801fbaf3c2776cb4 /fg21sim/configs/manager.py | |
parent | 8b51a48468b9fc15537716ab5680bd28f2542f30 (diff) | |
download | fg21sim-f9dc7bc7aa307b96e39905632dd86112349a5e2d.tar.bz2 |
configs/manager.py: Fix a bug that "_validate()" not working
Diffstat (limited to 'fg21sim/configs/manager.py')
-rw-r--r-- | fg21sim/configs/manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |