Softly fail if not able to read hooks

This commit is contained in:
Albert Wang
2016-01-29 00:20:53 -08:00
parent 89df625e04
commit 17141c1bb6

View File

@@ -598,11 +598,14 @@ def backup_hooks(args, repo_cwd, repository, repos_template):
output_file = '{0}/hooks.json'.format(hook_cwd)
template = '{0}/{1}/hooks'.format(repos_template,
repository['full_name'])
try:
_backup_data(args,
'hooks',
template,
output_file,
hook_cwd)
except SystemExit:
log_info("Unable to read hooks, skipping")
def fetch_repository(name, remote_url, local_dir, skip_existing=False):