Skip to content

Commit 25aab34

Browse files
committed
fix: add db port type conversion
1 parent 67ba258 commit 25aab34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/utils/db.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def get_redis_client():
1818
"""
1919
if Config.DB_USER and Config.DB_PORT:
2020
return redis.Redis(
21-
host=Config.DB_HOST,
22-
port=Config.DB_PORT,
21+
host=str(Config.DB_HOST),
22+
port=int(Config.DB_PORT),
2323
username=str(Config.DB_USER),
2424
password=str(Config.DB_PASS),
2525
decode_responses=True,

0 commit comments

Comments
 (0)