From f7caa461881e67377ae957f458430002018aa847 Mon Sep 17 00:00:00 2001 From: Daniel Gerhardt <code@dgerhardt.net> Date: Thu, 17 Oct 2019 13:19:48 +0200 Subject: [PATCH] Fix reading of config property on first line If arsnova.properties did not start with comments and had a property on the first line it was ignored. --- configreader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configreader.py b/configreader.py index c3970e7..3ebcaeb 100644 --- a/configreader.py +++ b/configreader.py @@ -17,7 +17,7 @@ class ConfigReader: f.close() config = ConfigParser.RawConfigParser() - config.readfp(io.BytesIO("[arsnova]" + properties)) + config.readfp(io.BytesIO("[arsnova]\n" + properties)) self.host = config.get("arsnova", "couchdb.host") self.port = config.get("arsnova", "couchdb.port") self.dbName = config.get("arsnova", "couchdb.name") -- GitLab