cryogenic22 commited on
Commit
7e5cd8c
·
verified ·
1 Parent(s): 502f9a1

Update utils/database.py

Browse files
Files changed (1) hide show
  1. 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.write(f"Attempting to connect to database at: {db_file}")
34
  conn = sqlite3.connect(db_file)
35
- st.write("Database connection successful!")
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)}")