Catch aiohttp.ClientError

See #595
This commit is contained in:
Neil Booth 2018-09-13 10:00:12 +01:00
parent fac32c4903
commit 515156f49d

View File

@ -140,6 +140,9 @@ class Daemon(object):
except aiohttp.ClientConnectionError:
log_error('connection problem - is your daemon running?')
on_good_message = 'connection restored'
except aiohttp.ClientError as e:
log_error(f'daemon error: {e}')
on_good_message = 'running normally'
except WarmingUpError:
log_error('starting up checking blocks.')
on_good_message = 'running normally'