From b2d016d1a1eb7bf36d94b57af99cd627a065c173 Mon Sep 17 00:00:00 2001 From: Jordan Date: Wed, 4 Nov 2020 16:52:32 -0500 Subject: use getattr_static to avoid executing code --- python/bncompleter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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: -- cgit v1.3.1