Remove extra global ref

This commit is contained in:
Joshua M. Boniface 2022-12-15 21:44:46 -05:00
parent 70b9929f4a
commit d3a2a4df41

View file

@ -166,7 +166,7 @@ def cleanup(signum="", frame=""):
"""
Clean up this processes stored transient data.
"""
global config, p
global config
with dbconn(config) as cur:
cur.execute("DELETE FROM states WHERE process_id = ?", (config["current_pid"],))