26 lines
766 B
Diff
26 lines
766 B
Diff
From b0dbdbf4c4992308f738d6ea74a9e3e21fc65129 Mon Sep 17 00:00:00 2001
|
|
From: rabbitali <wenxin32@foxmail.com>
|
|
Date: Wed, 27 Dec 2023 10:39:30 +0800
|
|
Subject: [PATCH] Update the exception catching type of the function
|
|
|
|
---
|
|
vulcanus/database/proxy.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/vulcanus/database/proxy.py b/vulcanus/database/proxy.py
|
|
index 94e9883..4e62527 100644
|
|
--- a/vulcanus/database/proxy.py
|
|
+++ b/vulcanus/database/proxy.py
|
|
@@ -108,7 +108,7 @@ class MysqlProxy(DataBaseProxy):
|
|
"""
|
|
try:
|
|
self._create_session()
|
|
- except sqlalchemy.exc.SQLAlchemyError as error:
|
|
+ except DatabaseConnectionFailed as error:
|
|
LOGGER.error(error)
|
|
return False
|
|
|
|
--
|
|
2.33.0
|
|
|