Skip to content
Snippets Groups Projects
Commit 7eb16282 authored by ale's avatar ale
Browse files

Catch project-level errors on set-hooks

parent ad33aa14
Branches
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment