mirror of
https://github.com/rio-labs/rio.git
synced 2026-02-12 00:28:32 -06:00
remove error message when a background task is cancelled
This commit is contained in:
@@ -1052,8 +1052,8 @@ window.resizeTo(screen.availWidth, screen.availHeight);
|
||||
|
||||
try:
|
||||
error = task.exception()
|
||||
except asyncio.CancelledError as e:
|
||||
error = e
|
||||
except asyncio.CancelledError:
|
||||
return
|
||||
|
||||
if error is not None:
|
||||
revel.error("Background task crashed:")
|
||||
|
||||
Reference in New Issue
Block a user