Sanity check: verify that plugin settings data jsonifies without error

More resilience which apparently is necessary as witnessed in #946
This commit is contained in:
Gina Häußge 2015-06-21 00:32:59 +02:00
parent 1c99bccef9
commit e722c2f8ad

View file

@ -122,6 +122,11 @@ def getSettings():
def process_plugin_result(name, result):
if result:
try:
jsonify(test=result)
except:
logger.exception("Error while jsonifying settings from plugin {}, please contact the plugin author about this".format(name))
if not "plugins" in data:
data["plugins"] = dict()
if "__enabled" in result: