Browse Source

More robust daemon error handling

Fixes #6
master
Neil Booth 8 years ago
parent
commit
c6b5c577ab
  1. 4
      server/daemon.py

4
server/daemon.py

@ -91,6 +91,10 @@ class Daemon(util.LoggedClass):
msg = 'connection problem - is your daemon running?'
except DaemonWarmingUpError:
msg = 'still starting up checking blocks...'
except (asyncio.CancelledError, DaemonError):
raise
except Exception as e:
msg = ('request gave unexpected error: {}'.format(e))
if msg != prior_msg or count == 10:
self.logger.error('{}. Retrying between sleeps...'

Loading…
Cancel
Save