mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
fix exception
This commit is contained in:
parent
955542a654
commit
c46525b70b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user