mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-03-06 05:29:49 +00:00
Strip whitespaces from URL and dirname prior to extension installation
This avoid some cryptic errors brought by accidental spaces around urls
This commit is contained in:
committed by
GitHub
parent
baf6946e06
commit
d5a5f2f29f
@@ -325,6 +325,11 @@ def normalize_git_url(url):
|
||||
def install_extension_from_url(dirname, url, branch_name=None):
|
||||
check_access()
|
||||
|
||||
if isinstance(dirname, str):
|
||||
dirname = dirname.strip()
|
||||
if isinstance(url, str):
|
||||
url = url.strip()
|
||||
|
||||
assert url, 'No URL specified'
|
||||
|
||||
if dirname is None or dirname == "":
|
||||
|
||||
Reference in New Issue
Block a user