Fix JSONDecodeError

Fix #814
This commit is contained in:
Julien Duponchelle committed 2016-12-12 10:03:40 +01:00
1 parent 508edf5cc5
commit 4bb990bf0c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -127,7 +127,7 @@ class Controller:
self.save()
with open(self._config_file) as f:
data = json.load(f)
except (OSError, json.JSONDecodeError) as e:
except (OSError, json.decoder.JSONDecodeError) as e:
log.critical("Cannot load %s: %s", self._config_file, str(e))
return