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:
parent
1c99bccef9
commit
e722c2f8ad
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue