Catch TimeoutError
This commit is contained in:
parent
28e7b95412
commit
26dc1021f6
@ -49,6 +49,8 @@ class Daemon(util.LoggedClass):
|
|||||||
if not self.is_warming_up(result):
|
if not self.is_warming_up(result):
|
||||||
return result
|
return result
|
||||||
msg = 'daemon is still warming up'
|
msg = 'daemon is still warming up'
|
||||||
|
except asyncio.TimeoutError:
|
||||||
|
msg = 'timeout error'
|
||||||
except aiohttp.DisconnectedError as e:
|
except aiohttp.DisconnectedError as e:
|
||||||
msg = '{}: {}'.format(e.__class__.__name__, e)
|
msg = '{}: {}'.format(e.__class__.__name__, e)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user