client: Catch a KeyboardInterrupt exception in the fetcher loop.

This commit is contained in:
Damir Jelić 2019-07-26 12:47:20 +02:00
parent 87c4958e15
commit a339f7be1d

View File

@ -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):