Commit c46525b7 authored by Jabasukuriputo Wang's avatar Jabasukuriputo Wang Committed by GitHub

fix exception

parent 955542a6
......@@ -156,7 +156,7 @@ def git_clone(url, dir, name, commithash=None):
current_hash = subprocess.check_output([git, "-C", dir, "rev-parse", "HEAD"], shell=False, encoding='utf8').strip()
if current_hash == commithash:
return
except RuntimeError:
except Exception:
print(f"Unable to determine {name}'s hash, attempting autofix...")
git_fix_workspace(dir)
current_hash = subprocess.check_output([git, "-C", dir, "rev-parse", "HEAD"], shell=False, encoding='utf8').strip()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment