瀏覽代碼

Merge pull request #15148 from jackthgu/none-dbconnect-warning-message

fix: Enhance database migration error logging
Tim Jaeryang Baek 3 月之前
父節點
當前提交
b5445b5db2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      backend/open_webui/internal/db.py

+ 1 - 0
backend/open_webui/internal/db.py

@@ -62,6 +62,7 @@ def handle_peewee_migration(DATABASE_URL):
 
     except Exception as 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
     finally:
         # Properly closing the database connection