Plug db session leak
This commit is contained in:
parent
27374e2ad4
commit
c287e1dae7
@ -62,7 +62,9 @@ class ReferenceKeystore(Keystore):
|
|||||||
try:
|
try:
|
||||||
k = r.first()[0]
|
k = r.first()[0]
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
self.db_session.rollback()
|
||||||
raise UnknownAccountError(address)
|
raise UnknownAccountError(address)
|
||||||
|
self.db_session.commit()
|
||||||
return self._decrypt(k, password)
|
return self._decrypt(k, password)
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ config_dir = '.'
|
|||||||
|
|
||||||
db = None
|
db = None
|
||||||
signer = None
|
signer = None
|
||||||
|
session = None
|
||||||
chainId = 8995
|
chainId = 8995
|
||||||
socket_path = '/run/crypto-dev-signer/jsonrpc.ipc'
|
socket_path = '/run/crypto-dev-signer/jsonrpc.ipc'
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -24,7 +24,7 @@ f.close()
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="crypto-dev-signer",
|
name="crypto-dev-signer",
|
||||||
version="0.4.13rc2",
|
version="0.4.13rc3",
|
||||||
description="A signer and keystore daemon and library for cryptocurrency software development",
|
description="A signer and keystore daemon and library for cryptocurrency software development",
|
||||||
author="Louis Holbrook",
|
author="Louis Holbrook",
|
||||||
author_email="dev@holbrook.no",
|
author_email="dev@holbrook.no",
|
||||||
|
Loading…
Reference in New Issue
Block a user