Spaces:
Paused
Paused
Update utils/database.py
Browse files- utils/database.py +2 -2
utils/database.py
CHANGED
|
@@ -30,9 +30,9 @@ def create_connection(db_file):
|
|
| 30 |
"""Create a database connection to the SQLite database."""
|
| 31 |
conn = None
|
| 32 |
try:
|
| 33 |
-
st.
|
| 34 |
conn = sqlite3.connect(db_file)
|
| 35 |
-
st.
|
| 36 |
return conn
|
| 37 |
except Error as e:
|
| 38 |
st.error(f"Database connection error: {str(e)}")
|
|
|
|
| 30 |
"""Create a database connection to the SQLite database."""
|
| 31 |
conn = None
|
| 32 |
try:
|
| 33 |
+
st.error(f"Attempting to connect to database at: {db_file}")
|
| 34 |
conn = sqlite3.connect(db_file)
|
| 35 |
+
st.error("Database connection successful!")
|
| 36 |
return conn
|
| 37 |
except Error as e:
|
| 38 |
st.error(f"Database connection error: {str(e)}")
|