mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fix exception handling in changefeed
This commit is contained in:
parent
213139d4c6
commit
f9748042c2
@ -24,8 +24,8 @@ class RethinkDBChangeFeed(ChangeFeed):
|
||||
try:
|
||||
self.run_changefeed()
|
||||
break
|
||||
except BackendError as exc:
|
||||
logger.exception(exc)
|
||||
except (BackendError, r.ReqlDriverError) as exc:
|
||||
logger.exception('Error connecting to the database, retrying')
|
||||
time.sleep(1)
|
||||
|
||||
def run_changefeed(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user