mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Update acceptance Dockerfile to use latest Python driver (#2594)
* Update acceptance Dockerfile to use latest Python driver * Fixed four Flake8 errors
This commit is contained in:
parent
73afc38697
commit
20e6c6a686
@ -5,5 +5,5 @@ RUN pip install --upgrade \
|
||||
pycco \
|
||||
websocket-client~=0.47.0 \
|
||||
pytest~=3.0 \
|
||||
bigchaindb-driver~=0.6.0 \
|
||||
bigchaindb-driver~=0.6.2 \
|
||||
blns
|
||||
|
@ -62,7 +62,7 @@ class LocalMongoDBConnection(Connection):
|
||||
try:
|
||||
try:
|
||||
return query.run(self.conn)
|
||||
except pymongo.errors.AutoReconnect as exc:
|
||||
except pymongo.errors.AutoReconnect:
|
||||
logger.warning('Lost connection to the database, '
|
||||
'retrying query.')
|
||||
return query.run(self.conn)
|
||||
|
@ -57,7 +57,7 @@ def validate_asset_public_key(pk):
|
||||
if len(pk_decoded) != 32:
|
||||
raise InvalidPublicKey('Public key should be of size 32 bytes')
|
||||
|
||||
except binascii.Error as e:
|
||||
except binascii.Error:
|
||||
raise InvalidPublicKey('Invalid `type` specified for public key `value`')
|
||||
|
||||
|
||||
|
@ -134,7 +134,7 @@ def websocket_handler(request):
|
||||
except RuntimeError as e:
|
||||
logger.debug('Websocket exception: %s', str(e))
|
||||
break
|
||||
except CancelledError as e:
|
||||
except CancelledError:
|
||||
logger.debug('Websocket closed')
|
||||
break
|
||||
if msg.type == aiohttp.WSMsgType.CLOSED:
|
||||
|
@ -415,7 +415,7 @@ def abci_http(_setup_database, _configure_bigchaindb, abci_server,
|
||||
requests.get(uri)
|
||||
return True
|
||||
|
||||
except requests.exceptions.RequestException as e:
|
||||
except requests.exceptions.RequestException:
|
||||
pass
|
||||
time.sleep(1)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user