Commit f7caa461 authored by Daniel Gerhardt's avatar Daniel Gerhardt

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.
parent ac439b5f
......@@ -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")
......
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