Fix db version being accessed before creation if table fails to create

This should prevent the script from hard crashing like in #288
This commit is contained in:
DominikDoom
2024-05-28 09:47:15 +02:00
parent 3eef536b64
commit 29b5bf0701

View File

@@ -78,6 +78,7 @@ class TagFrequencyDb:
)
def __get_version(self):
db_version = None
with transaction() as cursor:
cursor.execute(
"""