Fix trailing space in gamestats secret keys

This commit is contained in:
Sepalani
2017-05-17 22:38:58 +01:00
parent 9e84456bc2
commit 7f00113ee5

View File

@@ -132,10 +132,10 @@ class GameStatsHTTPServer(BaseHTTPServer.HTTPServer):
with open(filename) as config_file:
for line in config_file.readlines():
if "#" in line:
line = line[:line.index('#')]
line, sep, comment = line.partition("#")
s = line.split('\t')
# Skip whitespaces (i.e. ' ', '\t', '\n')
s = line.split(None)
if len(s) != 3:
continue