argument fix (teardown passes arguments to the function)
This commit is contained in:
parent
ecdd399e27
commit
6f4c6b33f2
@ -18,7 +18,7 @@ def get_db() -> sqlite3.Connection:
|
||||
return g.db
|
||||
|
||||
|
||||
def close_db() -> None:
|
||||
def close_db(*_args) -> None:
|
||||
db: sqlite3.Connection = g.pop('db', None)
|
||||
|
||||
if db is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user