Skip to content

Commit

Permalink
Merge pull request #19 from Yuuzi261/hotfix
Browse files Browse the repository at this point in the history
fix: error when data path exists but db not on path
  • Loading branch information
Yuuzi261 authored Nov 5, 2023
2 parents 83076b3 + f96812f commit 7901012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db_function/init_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sqlite3

def init_db():
os.mkdir(os.getenv('DATA_PATH'))
if not os.path.exists(os.getenv('DATA_PATH')): os.mkdir(os.getenv('DATA_PATH'))
conn = sqlite3.connect(f"{os.getenv('DATA_PATH')}tracked_accounts.db")
cursor = conn.cursor()
cursor.executescript("""
Expand Down

0 comments on commit 7901012

Please sign in to comment.