#2220: handle matching failure more gracefully.
This commit is contained in:
parent
a7bd27f0a8
commit
4286138e7b
|
@ -125,7 +125,7 @@ class Completer:
|
|||
import re
|
||||
m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text)
|
||||
if not m:
|
||||
return
|
||||
return []
|
||||
expr, attr = m.group(1, 3)
|
||||
object = eval(expr, self.namespace)
|
||||
words = dir(object)
|
||||
|
|
Loading…
Reference in New Issue