Create the controller config at first controller start

This commit is contained in:
Julien Duponchelle committed 2016-06-23 12:17:44 +02:00
1 parent 4c3bfde97e
commit 5a410155f7
1 file changed
+2 -1
+2 -1
View File
@@ -78,8 +78,9 @@ class Controller:
"""
Reload the controller configuration from disk
"""
if not os.path.exists(self._config_file):
return
self.save()
try:
with open(self._config_file) as f:
data = json.load(f)