Catch TimeoutError

This commit is contained in:
Neil Booth 2016-11-05 18:37:40 +09:00
parent 28e7b95412
commit 26dc1021f6

View File

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