fix: cast port to integer

closes https://github.com/frappe/frappe/issues/21687
This commit is contained in:
Ankush Menat 2023-07-15 17:46:45 +05:30
parent b4ea330c86
commit 2264c4cf47

View file

@ -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)