1. Naoki INADA
  2. bpython

Commits

Andreas Stührk  committed 7c2295e

Catch SyntaxError in Repl.get_args().

  • Participants
  • Parent commits 44b740e
  • Branches default

Comments (0)

Files changed (1)

File bpython/cli.py

View file
  • Ignore whitespace
 
         try:
             f = self.get_object(func)
-        except (AttributeError, NameError):
+        except (AttributeError, NameError, SyntaxError):
             return False
 
         if inspect.isclass(f):