mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Remove unused exception variable
This commit is contained in:
parent
261fe8ebf6
commit
67af0deaae
@ -43,7 +43,7 @@ class RethinkDBConnection(Connection):
|
||||
for i in range(self.max_tries):
|
||||
try:
|
||||
return query.run(self.conn)
|
||||
except r.ReqlDriverError as exc:
|
||||
except r.ReqlDriverError:
|
||||
if i + 1 == self.max_tries:
|
||||
raise
|
||||
self.connect()
|
||||
@ -53,7 +53,7 @@ class RethinkDBConnection(Connection):
|
||||
try:
|
||||
self.conn = r.connect(host=self.host, port=self.port,
|
||||
db=self.db)
|
||||
except r.ReqlDriverError as exc:
|
||||
except r.ReqlDriverError:
|
||||
if i + 1 == self.max_tries:
|
||||
raise
|
||||
time.sleep(2**i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user