Skip to content

Commit f6c34d1

Browse files
committed
Typecast port (int) to string in url->dsn conversion
1 parent ec5c603 commit f6c34d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def url_to_dsn(url):
214214
if host is not None:
215215
dsn += " host=" + host
216216
if port is not None:
217-
dsn += " port=" + port
217+
dsn += " port=" + str(port)
218218

219219
return dsn
220220

0 commit comments

Comments
 (0)