[FIX] git_tool: ignore crash and print problem

- the last problem was Moved Permanently. The print help to debug
This commit is contained in:
Mathieu Benoit 2022-11-23 22:33:33 -05:00
parent 5e80afa489
commit 0f04bb6cea

View file

@ -965,9 +965,15 @@ class GitTool:
print("Error when forking repo %s" % forked_repo) print("Error when forking repo %s" % forked_repo)
exit(1) exit(1)
else: else:
print( try:
"Forked %s to %s" % (upstream_url, forked_repo["html_url"]) print(
) "Forked %s to %s"
% (upstream_url, forked_repo["html_url"])
)
except Exception as e:
print(e)
print(forked_repo)
print(upstream_url)
elif status == 202: elif status == 202:
print("Forked repo %s already exists" % forked_repo["full_name"]) print("Forked repo %s already exists" % forked_repo["full_name"])
elif status != 200: elif status != 200: