From 009c26df9ccc65e3c58f62154a63498debd8e5b3 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 31 Dec 2019 13:19:17 +0100 Subject: Default value for MySQL port number --- jfr_playoff/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jfr_playoff/db.py b/jfr_playoff/db.py index b85c5a4..0b7713d 100644 --- a/jfr_playoff/db.py +++ b/jfr_playoff/db.py @@ -16,7 +16,7 @@ class PlayoffDB(object): user=settings['user'], password=settings['pass'], host=settings['host'], - port=settings['port']) + port=settings.get('port', 3306)) PlayoffLogger.get('db').info('db settings: %s', settings) self.db_cursor = self.database.cursor(buffered=True) -- cgit v1.2.3