'sucess_message' -> 'success_message'

This commit is contained in:
jesopo 2019-06-24 22:49:44 +01:00
parent 010f594774
commit 882bbdf0ff

View file

@ -186,7 +186,7 @@ class Module(ModuleManager.BaseModule):
else: else:
new_events = [e.lower() for e in event["args_split"][2:]] new_events = [e.lower() for e in event["args_split"][2:]]
all_hooks[existing_hook]["events"] = new_events all_hooks[existing_hook]["events"] = new_events
sucess_message = "Updated events for hook %s" % hook_name success_message = "Updated events for hook %s" % hook_name
elif subcommand == "branches": elif subcommand == "branches":
if not existing_hook: if not existing_hook:
raise utils.EventError("No hook found for %s" % hook_name) raise utils.EventError("No hook found for %s" % hook_name)