diff options
author | emkael <emkael@tlen.pl> | 2018-02-20 12:00:27 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-02-20 12:00:27 +0100 |
commit | b62dfa544bd1212dd84512043abd129e59240792 (patch) | |
tree | 8ce87624c08f464d5a2045461d192f1fac9baad1 /jfr_playoff/db.py | |
parent | f5c15f61592454e75aec384592f5d0c7f9ff1b07 (diff) |
Database configuration is no longer mandatory, emitting warning if it's not provided
Diffstat (limited to 'jfr_playoff/db.py')
-rw-r--r-- | jfr_playoff/db.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jfr_playoff/db.py b/jfr_playoff/db.py index c96c95c..6825fd2 100644 --- a/jfr_playoff/db.py +++ b/jfr_playoff/db.py @@ -6,6 +6,7 @@ import mysql.connector class PlayoffDB(object): db_cursor = None + DATABASE_NOT_CONFIGURED_WARNING = 'WARNING: database not configured' def __init__(self, settings): reload(sys) |