From 7e343913d3a30b3a169040131c2a7a23ff5f5efb Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 6 May 2021 08:52:21 -0400 Subject: convert warn to error when attempting to set blacklisted console variable, fixes Vector35/binaryninja-api#2206 --- python/scriptingprovider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/scriptingprovider.py') diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py index a0b92cd0..76d41cbd 100644 --- a/python/scriptingprovider.py +++ b/python/scriptingprovider.py @@ -527,7 +527,7 @@ class BlacklistedDict(dict): def __setitem__(self, k, v): if self.blacklist_enabled and k in self.__blacklist: - log.log_warn('Setting variable "{}" will have no affect as it is automatically controlled by the ScriptingProvider.'.format(k)) + log.log_error('Setting variable "{}" will have no affect as it is automatically controlled by the ScriptingProvider.'.format(k)) super(BlacklistedDict, self).__setitem__(k, v) def enable_blacklist(self, enabled): -- cgit v1.3.1