Skip to content

Commit

Permalink
Fix db version being accessed before creation if table fails to create
Browse files Browse the repository at this point in the history
This should prevent the script from hard crashing like in #288
  • Loading branch information
DominikDoom committed May 28, 2024
1 parent 3eef536 commit 29b5bf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/tag_frequency_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def __update_db_data(self, cursor: sqlite3.Cursor, key, value):
)

def __get_version(self):
db_version = None
with transaction() as cursor:
cursor.execute(
"""
Expand Down

0 comments on commit 29b5bf0

Please sign in to comment.