mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-06 16:38:03 +01:00
Softly fail if not able to read hooks
This commit is contained in:
@@ -598,11 +598,14 @@ def backup_hooks(args, repo_cwd, repository, repos_template):
|
|||||||
output_file = '{0}/hooks.json'.format(hook_cwd)
|
output_file = '{0}/hooks.json'.format(hook_cwd)
|
||||||
template = '{0}/{1}/hooks'.format(repos_template,
|
template = '{0}/{1}/hooks'.format(repos_template,
|
||||||
repository['full_name'])
|
repository['full_name'])
|
||||||
_backup_data(args,
|
try:
|
||||||
'hooks',
|
_backup_data(args,
|
||||||
template,
|
'hooks',
|
||||||
output_file,
|
template,
|
||||||
hook_cwd)
|
output_file,
|
||||||
|
hook_cwd)
|
||||||
|
except SystemExit:
|
||||||
|
log_info("Unable to read hooks, skipping")
|
||||||
|
|
||||||
|
|
||||||
def fetch_repository(name, remote_url, local_dir, skip_existing=False):
|
def fetch_repository(name, remote_url, local_dir, skip_existing=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user