From 2a7e4fcd6e2b3d739047bb46987cb3930e5b14f5 Mon Sep 17 00:00:00 2001 From: Ben Finney Date: Mon, 19 Dec 2022 09:52:20 +1100 Subject: [PATCH] Remove a statement using a name that is never defined in scope. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The intention may have been to close the “current” database cursor; but there is no reference to that at this point in the code. --- auth-mastodon.py | 1 - 1 file changed, 1 deletion(-) diff --git a/auth-mastodon.py b/auth-mastodon.py index 92d8c4a..fc0de5a 100644 --- a/auth-mastodon.py +++ b/auth-mastodon.py @@ -69,7 +69,6 @@ except Exception: @atexit.register def close_db(): - cursor.close() database.close()