remove except Exception, no longer needed

This commit is contained in:
Eric 2025-02-13 15:52:16 +11:00 committed by Arnaud
parent b0f7d79dae
commit e84d9cc8ad
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -262,12 +262,8 @@ proc query*(
var s = ? NoParamsStmt.prepare(env, query)
try:
var res = s.query((), onData)
return res
except Exception as err:
return failure("sqliteutils.query (env) exception: " & $err.msg)
finally:
# NB: dispose of the prepared query statement and free associated memory
s.dispose
var res = s.query((), onData)
# NB: dispose of the prepared query statement and free associated memory
s.dispose
return res