diff --git a/lib/yunohost/hook.py b/lib/yunohost/hook.py index ab8bdacf..30d08ba1 100644 --- a/lib/yunohost/hook.py +++ b/lib/yunohost/hook.py @@ -217,7 +217,10 @@ def hook_callback(action, hooks=[], args=None): logger.exception("error while executing hook '%s'", info['path']) state = 'failed' - result[state][filename] = info['path'] + try: + result[state][name].append(info['path']) + except KeyError: + result[state][name] = [info['path']] return result