Skip to content

Commit 70cd00b

Browse files
Improve name of aiorepl coroutine
1 parent 7ba45e6 commit 70cd00b

File tree

1 file changed

+4
-2
lines changed
  • internal_filesystem/lib/mpos

1 file changed

+4
-2
lines changed

internal_filesystem/lib/mpos/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ def custom_exception_handler(e):
8989

9090
# Create limited aiorepl because it's better than nothing:
9191
import aiorepl
92-
print("Starting very limited asyncio REPL task. Use sys.exit() to stop all asyncio tasks and go to real REPL...")
93-
mpos.TaskManager.create_task(aiorepl.task()) # only gets started when mpos.TaskManager() is created
92+
async def asyncio_repl():
93+
print("Starting very limited asyncio REPL task. Use sys.exit() to stop all asyncio tasks and go to real REPL...")
94+
await aiorepl.task()
95+
mpos.TaskManager.create_task(asyncio_repl()) # only gets started when mpos.TaskManager() is created
9496

9597
async def ota_rollback_cancel():
9698
try:

0 commit comments

Comments
 (0)