Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reflex/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def get_db_status() -> dict[str, bool]:
engine = get_engine()
with engine.connect() as connection:
connection.execute(sqlalchemy.text("SELECT 1"))
except sqlalchemy.exc.OperationalError:
except Exception:
status = False

return {"db": status}
Expand Down
4 changes: 1 addition & 3 deletions reflex/utils/prerequisites.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,6 @@ async def get_redis_status() -> dict[str, bool | None]:
Returns:
The status of the Redis connection.
"""
from redis.exceptions import RedisError

try:
status = True
redis_client = get_redis()
Expand All @@ -442,7 +440,7 @@ async def get_redis_status() -> dict[str, bool | None]:
await ping_command
else:
status = None
except RedisError:
except Exception:
status = False

return {"redis": status}
Expand Down
Loading