Dont bail on error

This commit is contained in:
Tris Forster 2020-10-16 17:56:40 +11:00
parent 27fd6926dc
commit 0bc1b9376b

View File

@ -19,7 +19,10 @@ def mirror_host(d, host, token):
logger.info("Cloning new repo: %s", repo) logger.info("Cloning new repo: %s", repo)
os.makedirs(p, exist_ok=True) os.makedirs(p, exist_ok=True)
cmd = ['git', 'clone', '--mirror', url, p] cmd = ['git', 'clone', '--mirror', url, p]
subprocess.run(cmd, check=True) try:
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError:
logger.exception("Failed to process %s", repo)
def get_repos(host, token, pagesize=50): def get_repos(host, token, pagesize=50):