diff --git a/gitlab_deps/main.py b/gitlab_deps/main.py index 6fec413f3b57d880d1fdd05b26d6428351193b63..47b2966a6d46dcfd7e27d569f108661c63e9db27 100644 --- a/gitlab_deps/main.py +++ b/gitlab_deps/main.py @@ -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)