We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15290d5 commit a3401e9Copy full SHA for a3401e9
Lib/pdb.py
@@ -891,9 +891,9 @@ def default(self, line):
891
except Exception as e:
892
# Maybe it's an await expression/statement
893
if (
894
- isinstance(e, SyntaxError)
+ self.async_shim_frame is not None
895
+ and isinstance(e, SyntaxError)
896
and e.msg == "'await' outside function"
- and self.async_shim_frame is not None
897
):
898
try:
899
self._exec_await(buffer, globals, locals)
0 commit comments