Read the db_port as integer (#11392)

db_port must be read as integer.
I have missed to add this in the pull 11284
This commit is contained in:
Danislav 2020-04-08 23:27:53 +02:00 committed by GitHub
parent fc921a143c
commit b3690ea11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ elif ':' in config['db_host']:
db_port = int(config['db_host'].rsplit(':')[1])
elif 'db_port' in config:
db_server = config['db_host']
db_port = config['db_port']
db_port = int(config['db_port'])
else:
db_server = config['db_host']
db_port = 0