From 0f04bb6cea37d71e9cc28b578d552db28ec6071b Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Wed, 23 Nov 2022 22:33:33 -0500 Subject: [PATCH] [FIX] git_tool: ignore crash and print problem - the last problem was Moved Permanently. The print help to debug --- script/git_tool.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/script/git_tool.py b/script/git_tool.py index 1af00f3..5cba620 100644 --- a/script/git_tool.py +++ b/script/git_tool.py @@ -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: