#2220: handle matching failure more gracefully.

This commit is contained in:
Georg Brandl 2008-03-06 07:43:02 +00:00
parent a7bd27f0a8
commit 4286138e7b
1 changed files with 1 additions and 1 deletions

View File

@ -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)