Ensure port for dsn is a string....

This commit is contained in:
Joshua Harlow 2012-03-29 22:09:15 -07:00
parent c090990357
commit 748b424b69

View File

@ -275,7 +275,7 @@ def fetch_dbdsn(config, pw_gen, dbname=''):
dsn += "@"
dsn += host
if port:
dsn += ":" + port
dsn += ":" + str(port)
if dbname:
dsn += "/" + dbname
else: