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

This should prevent the script from hard crashing like in #288
pull/293/head
DominikDoom 2024-05-28 09:47:15 +02:00
parent 3eef536b64
commit 29b5bf0701
1 changed files with 1 additions and 0 deletions

View File

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