You are working on the python-trio/flake8-async repository. The source code is checked out at /testbed at…
You are working on the python-trio/flake8-async repository. The source code is checked out at /testbed at…: a task in SWE-Lego-RL-2699 (Harbor dataset). async def fn(): try: while True: try: await trio.sleep(1) except Exception: pass except Exception: pass triggers File ".../flake8…
The task
async def fn(): try: while True: try: await trio.sleep(1) except Exception: pass except Exception: pass ``` triggers ``` File ".../flake8_async/visitors/visitor91x.py", line 346, in check_function_exit assert not isinstance(original_node, cst.FunctionDef) AssertionError ```
Part of Lego-X/Lego-RL-2699.