mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
handle invalid extension
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -160,7 +160,7 @@ def install_extension_from_url(dirname, url, branch_name, search_text, sort_colu
|
||||
if os.path.exists(target_dir):
|
||||
log.error(f'Extension: path="{target_dir}" directory already exists')
|
||||
return ['', '']
|
||||
if any(normalize_git_url(x.remote) == url for x in extensions.extensions):
|
||||
if any(normalize_git_url(x.remote) == url for x in extensions.extensions if x.remote is not None):
|
||||
return ['', "Extension with this URL is already installed"]
|
||||
tmpdir = os.path.join(paths.data_path, "tmp", dirname)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user