Commit 7eb16282 authored by ale's avatar ale

Catch project-level errors on set-hooks

parent ad33aa14
Pipeline #7552 passed with stages
in 42 seconds
......@@ -256,8 +256,12 @@ specified as '-'.
projects = set(y[0] for y in (
split_project_branch(x.strip()) for x in args.projects_list))
for project_path in projects:
check_hook(gl, args.hook_url, args.webhook_auth_token,
project_path, args.dry_run)
try:
check_hook(gl, args.hook_url, args.webhook_auth_token,
project_path, args.dry_run)
except Exception as e:
logging.error('error checking project %s: %s',
project_path, e)
elif cmd == 'server':
deps = read_deps(args.dependencies_list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment