mirror of
https://github.com/open-webui/open-webui
synced 2025-06-22 18:07:17 +00:00
Merge pull request #15148 from jackthgu/none-dbconnect-warning-message
fix: Enhance database migration error logging
This commit is contained in:
commit
b5445b5db2
@ -62,6 +62,7 @@ def handle_peewee_migration(DATABASE_URL):
|
|||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error(f"Failed to initialize the database connection: {e}")
|
log.error(f"Failed to initialize the database connection: {e}")
|
||||||
|
log.warning("Hint: If your database password contains special characters, you may need to URL-encode it.")
|
||||||
raise
|
raise
|
||||||
finally:
|
finally:
|
||||||
# Properly closing the database connection
|
# Properly closing the database connection
|
||||||
|
Loading…
Reference in New Issue
Block a user