summaryrefslogtreecommitdiff
path: root/python/bncompleter.py
diff options
context:
space:
mode:
authorJordan <jordan@psifertex.com>2020-11-04 16:52:32 -0500
committerGitHub <noreply@github.com>2020-11-04 16:52:32 -0500
commitb2d016d1a1eb7bf36d94b57af99cd627a065c173 (patch)
tree80dcb0d9f6d1e82b681ecf2fd8bfa9c2358064f0 /python/bncompleter.py
parent63ddbbe00200ae615e1a848edbfba9d147d63205 (diff)
use getattr_static to avoid executing code
Diffstat (limited to 'python/bncompleter.py')
-rw-r--r--python/bncompleter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/bncompleter.py b/python/bncompleter.py
index fcfccc30..a23f6007 100644
--- a/python/bncompleter.py
+++ b/python/bncompleter.py
@@ -199,7 +199,7 @@ class Completer:
not (noprefix and word[:n+1] == noprefix)):
match = "%s.%s" % (expr, word)
try:
- val = getattr(thisobject, word)
+ val = getattr_static(thisobject, word)
except Exception:
pass # Include even if attribute not set
else: