fix: cast port to integer
closes https://github.com/frappe/frappe/issues/21687
This commit is contained in:
parent
b4ea330c86
commit
2264c4cf47
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue