diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2021-05-06 08:52:21 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2021-05-06 08:52:21 -0400 |
| commit | 7e343913d3a30b3a169040131c2a7a23ff5f5efb (patch) | |
| tree | ee4a8021966ee5fc743b746b9d9441d1b37bb737 /python | |
| parent | 6f101bc1aa5c9347d3bce928654928178d290789 (diff) | |
convert warn to error when attempting to set blacklisted console variable, fixes Vector35/binaryninja-api#2206
Diffstat (limited to 'python')
| -rw-r--r-- | python/scriptingprovider.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
