Keep None as the default DBPort
This commit is contained in:
parent
e1e4245822
commit
9d093f8e31
1 changed files with 2 additions and 2 deletions
|
|
@ -400,7 +400,7 @@ def load_config(environ):
|
|||
['DBUser', 'string', None],
|
||||
['DBHost', 'string', None],
|
||||
['DBhost', 'string', None], # alias for backwards compatibility
|
||||
['DBPort', 'integer', 5432],
|
||||
['DBPort', 'integer', None],
|
||||
['DBPass', 'string', None],
|
||||
['KojiDir', 'string', None],
|
||||
|
||||
|
|
@ -667,7 +667,7 @@ def server_setup(environ):
|
|||
user=opts["DBUser"],
|
||||
password=opts.get("DBPass", None),
|
||||
host=opts.get("DBHost", None),
|
||||
port=opts.get("DBPort", 5432))
|
||||
port=opts.get("DBPort", None))
|
||||
except Exception:
|
||||
tb_str = ''.join(traceback.format_exception(*sys.exc_info()))
|
||||
logger.error(tb_str)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue