If you type just
in IPython, it dies with SyntaxError: 'return' outside function (<ipython-input-1-64672a10de46>, line 1). I can paste the whole traceback here if you want.
SyntaxError: 'return' outside function (<ipython-input-1-64672a10de46>, line 1)
Sorry, I pressed my Return key, and it let me enter the issue with a blank description. I will edit it to what I want...
Wow, nasty... Will fix now, thanks for the report!
Prevent crash from invalid code such as a bare 'return'.
More generally, catch any exceptions from code that may have parsed
into an AST tree but doesn't actually compile.
Nice. I can confirm that this works now.
Thanks for the super quick fix!