New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't crash on unexpected PY2 except syntax #4011

merged 5 commits into from Sep 26, 2017
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings


Just for now

Viewing a subset of changes. View all

Tweak error to be less specific

  • Loading branch information...
gvanrossum committed Sep 26, 2017
commit c3211c76b08b52f92bc441be91a84335b7e0d8d2
@@ -593,7 +593,7 @@ def try_handler(self,
elif isinstance(, ast27.Name):
else:"Sorry, `except <expr>, (<tuple>)` is not supported","Sorry, `except <expr>, <tuple or list>` is not supported",
item.lineno, item.col_offset)
types = [self.visit(h.type) for h in handlers]
ProTip! Use n and p to navigate between commits in a pull request.