mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
borrow some of the previous PRs reconnection code
This commit is contained in:
@@ -46,7 +46,7 @@ router = Router(
|
||||
)
|
||||
router.run()
|
||||
try:
|
||||
DB.connect()
|
||||
DB.connect(reuse_if_open=True)
|
||||
except OperationalError as e:
|
||||
log.info(f"Failed to connect to database again due to: {e}")
|
||||
pass
|
||||
Reference in New Issue
Block a user