From 2264c4cf47539da32df60f885879e5ced159cd1d Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sat, 15 Jul 2023 17:46:45 +0530 Subject: [PATCH] fix: cast port to integer closes https://github.com/frappe/frappe/issues/21687 --- frappe/utils/connections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/connections.py b/frappe/utils/connections.py index ce8b4eba0e..2b965fb604 100644 --- a/frappe/utils/connections.py +++ b/frappe/utils/connections.py @@ -10,7 +10,7 @@ REDIS_KEYS = ("redis_cache", "redis_queue") def is_open(scheme, hostname, port, timeout=10): if scheme in ["redis", "postgres", "mariadb"]: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - conn = (hostname, port) + conn = (hostname, int(port)) else: raise UrlSchemeNotSupported(scheme)