mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
retry in case of another type of recoverable error from a rethinkdb operation
This commit is contained in:
parent
b063fdc1fb
commit
7cf33a81ea
@ -69,8 +69,7 @@ class RethinkerWrapper(object):
|
||||
time.sleep(0.5)
|
||||
except r.ReqlOpFailedError as e:
|
||||
if e.args and re.match(
|
||||
'^Cannot perform.*primary replica.*',
|
||||
e.args[0]):
|
||||
'^Cannot perform.*replica.*', e.args[0]):
|
||||
self.logger.error(
|
||||
'will keep trying after potentially recoverable '
|
||||
'error: %s', e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user