From 26dc1021f6530a12d8aa92d8aff9da631ad2a840 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 5 Nov 2016 18:37:40 +0900 Subject: [PATCH] Catch TimeoutError --- server/daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/daemon.py b/server/daemon.py index b745076..27c0a3b 100644 --- a/server/daemon.py +++ b/server/daemon.py @@ -49,6 +49,8 @@ class Daemon(util.LoggedClass): if not self.is_warming_up(result): return result msg = 'daemon is still warming up' + except asyncio.TimeoutError: + msg = 'timeout error' except aiohttp.DisconnectedError as e: msg = '{}: {}'.format(e.__class__.__name__, e)