Raw messages

This commit is contained in:
Alexandre Aubin 2018-12-13 15:16:07 +00:00
parent b93e96d33b
commit 2ece557e0c

View file

@ -183,7 +183,7 @@ def app_fetchlist(url=None, name=None):
with open(list_file, "w") as f: with open(list_file, "w") as f:
f.write(appslist) f.write(appslist)
except Exception as e: except Exception as e:
raise YunohostError("Error while writing appslist %s: %s" % (name, str(e))) raise YunohostError("Error while writing appslist %s: %s" % (name, str(e)), __raw_msg__=True)
now = int(time.time()) now = int(time.time())
appslists[name]["lastUpdate"] = now appslists[name]["lastUpdate"] = now
@ -1472,7 +1472,7 @@ def app_action_run(app, action, args=None):
actions = {x["id"]: x for x in actions} actions = {x["id"]: x for x in actions}
if action not in actions: if action not in actions:
raise YunohostError("action '%s' not available for app '%s', available actions are: %s" % (action, app, ", ".join(actions.keys()))) raise YunohostError("action '%s' not available for app '%s', available actions are: %s" % (action, app, ", ".join(actions.keys())), __raw_msg__=True)
action_declaration = actions[action] action_declaration = actions[action]
@ -2431,7 +2431,7 @@ def _write_appslist_list(appslist_lists):
json.dump(appslist_lists, f) json.dump(appslist_lists, f)
except Exception as e: except Exception as e:
raise YunohostError("Error while writing list of appslist %s: %s" % raise YunohostError("Error while writing list of appslist %s: %s" %
(APPSLISTS_JSON, str(e))) (APPSLISTS_JSON, str(e)), __raw_msg__=True)
def _register_new_appslist(url, name): def _register_new_appslist(url, name):