Skip to content

Close database for non-reporting commands (Fixes #860)#865

Merged
thp merged 2 commits into
masterfrom
thp/close-sqlite
May 5, 2026
Merged

Close database for non-reporting commands (Fixes #860)#865
thp merged 2 commits into
masterfrom
thp/close-sqlite

Conversation

@thp
Copy link
Copy Markdown
Owner

@thp thp commented May 5, 2026

This avoids warnings like this one:

<sys>:0: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x...>

Thanks to @hannob for reporting.

This avoids warnings like this one:

<sys>:0: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x...>

Thanks to Hanno Böck for reporting.
@thp thp merged commit 694a258 into master May 5, 2026
10 of 12 checks passed
@thp thp deleted the thp/close-sqlite branch May 5, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

With warnings enabled, python complains about unclosed sqlite connection (ResourceWarning)

1 participant