mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
minor
This commit is contained in:
parent
d330d8ec56
commit
dbd020f34f
@ -51,7 +51,7 @@ class RethinkDBConnection(Connection):
|
|||||||
try:
|
try:
|
||||||
rconn = r.connect(host=self.host, port=self.port, db=self.dbname)
|
rconn = r.connect(host=self.host, port=self.port, db=self.dbname)
|
||||||
connected = True
|
connected = True
|
||||||
except (r.ReqlDriverError,r.ReqlTimeoutError) as exc:
|
except (r.ReqlDriverError, r.ReqlTimeoutError) as exc:
|
||||||
if str(exc) == 'mock' or time.time()*1000 > end_time:
|
if str(exc) == 'mock' or time.time()*1000 > end_time:
|
||||||
raise ConnectionError from exc
|
raise ConnectionError from exc
|
||||||
time.sleep(timeout/1000)
|
time.sleep(timeout/1000)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user