mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-10-02 08:28:36 -04:00
client: Catch a KeyboardInterrupt exception in the fetcher loop.
This commit is contained in:
parent
87c4958e15
commit
a339f7be1d
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ class PanClient(AsyncClient):
|
|||
await self.index.commit_events()
|
||||
self.delete_fetcher_task(fetch_task)
|
||||
|
||||
except asyncio.CancelledError:
|
||||
except (asyncio.CancelledError, KeyboardInterrupt):
|
||||
return
|
||||
|
||||
async def sync_tasks(self, response):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue