# HG changeset patch # User Goffi # Date 1521216057 -3600 # Node ID e8e1507049b7ed1214a9d41d266706e772072172 # Parent e96076cdf74c5494d678e351c1763282ecfffbfe core: use C.bool to detect value of "handler" field in PLUGIN_INFO diff -r e96076cdf74c -r e8e1507049b7 src/core/sat_main.py --- a/src/core/sat_main.py Fri Mar 16 17:00:09 2018 +0100 +++ b/src/core/sat_main.py Fri Mar 16 17:00:57 2018 +0100 @@ -269,7 +269,7 @@ if optional: return raise ImportError(u"Error during initiation") - if 'handler' in plugin_info and plugin_info['handler'] == 'yes': + if C.bool(plugin_info.get(C.PI_HANDLER, C.BOOL_FALSE)): self.plugins[import_name].is_handler = True else: self.plugins[import_name].is_handler = False