borrow some of the previous PRs reconnection code

This commit is contained in:
perf3ct committed 2024-06-17 16:44:20 -07:00
1 parent 48e1356ed9
commit 59c6ff727a
2 files changed
+21 -2

No files matched your search

+1 -1
View File
@@ -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