mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
generalize regex to handle another exception message "Cannot perform read: The primary replica isn't connected to a quorum of replicas. ..."
This commit is contained in:
parent
6c57b81de8
commit
406a617d01
@ -69,7 +69,7 @@ class RethinkerWrapper(object):
|
||||
time.sleep(0.5)
|
||||
except r.ReqlOpFailedError as e:
|
||||
if e.args and re.match(
|
||||
'^Cannot perform.*primary replica.*not available.*',
|
||||
'^Cannot perform.*primary replica.*',
|
||||
e.args[0]):
|
||||
self.logger.error(
|
||||
'will keep trying after potentially recoverable '
|
||||
|
Loading…
x
Reference in New Issue
Block a user