Update py-collaborator-server.py

This commit is contained in:
Mariusz 2019-02-28 22:52:11 +01:00 committed by GitHub
parent 2c4713e956
commit 06834ed0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,6 +301,7 @@ def main(argv):
config.update(json.loads(open(CONFIGURATION_FILE).read())) config.update(json.loads(open(CONFIGURATION_FILE).read()))
if not connectToDatabase(): if not connectToDatabase():
Logger.err('Could not connect to database: {}'.format(config['mysql-host']))
sys.exit(-1) sys.exit(-1)
initDatabase() initDatabase()