- #2250: Exceptions raised during evaluation of names in rlcompleter's
  ``Completer.complete()`` method are now caught and ignored.
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py
index a2d5fe6..36965e6 100644
--- a/Lib/rlcompleter.py
+++ b/Lib/rlcompleter.py
@@ -127,7 +127,10 @@
         if not m:
             return []
         expr, attr = m.group(1, 3)
-        object = eval(expr, self.namespace)
+        try:
+            object = eval(expr, self.namespace)
+        except Exception:
+            return []
         words = dir(object)
         if hasattr(object,'__class__'):
             words.append('__class__')