mirror of https://github.com/status-im/nim-eth.git
kvstore: remove unnecessary EH (#592)
This commit is contained in:
parent
ca1c205441
commit
72c9858927
|
@ -664,7 +664,6 @@ proc customScalarBlobFunction(ctx: ptr sqlite3_context, n: cint, v: ptr ptr sqli
|
|||
toOpenArray(blob2, 0, blob2Len - 1)
|
||||
)
|
||||
|
||||
try:
|
||||
if s.isOk():
|
||||
let bytes = s.unsafeGet()
|
||||
# try is necessary as otherwise nim marks SQLITE_TRANSIENT as throwing
|
||||
|
@ -678,9 +677,6 @@ proc customScalarBlobFunction(ctx: ptr sqlite3_context, n: cint, v: ptr ptr sqli
|
|||
let errMsg = s.error
|
||||
sqlite3_result_error(ctx, errMsg, -1)
|
||||
|
||||
except Exception as e:
|
||||
raiseAssert(e.msg)
|
||||
|
||||
proc registerCustomScalarFunction*(db: SqStoreRef, name: string, fun: CustomFunction): KvResult[void] =
|
||||
## Register custom function inside sqlite engine. Registered function can
|
||||
## be used in further queries by its name. Function should be side-effect
|
||||
|
|
Loading…
Reference in New Issue