[FIX] git_tool: ignore crash and print problem
- the last problem was Moved Permanently. The print help to debug
This commit is contained in:
parent
5e80afa489
commit
0f04bb6cea
1 changed files with 9 additions and 3 deletions
|
|
@ -965,9 +965,15 @@ class GitTool:
|
|||
print("Error when forking repo %s" % forked_repo)
|
||||
exit(1)
|
||||
else:
|
||||
print(
|
||||
"Forked %s to %s" % (upstream_url, forked_repo["html_url"])
|
||||
)
|
||||
try:
|
||||
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:
|
||||
print("Forked repo %s already exists" % forked_repo["full_name"])
|
||||
elif status != 200:
|
||||
|
|
|
|||
Loading…
Reference in a new issue