Commit f7caa461 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Fix reading of config property on first line

If did not start with comments and had a property on
the first line it was ignored.
parent ac439b5f
......@@ -17,7 +17,7 @@ class ConfigReader:
config = ConfigParser.RawConfigParser()
config.readfp(io.BytesIO("[arsnova]" + properties))
config.readfp(io.BytesIO("[arsnova]\n" + properties)) = config.get("arsnova", "")
self.port = config.get("arsnova", "couchdb.port")
self.dbName = config.get("arsnova", "")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment