mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
fix_extension_check_for_requirements
This commit is contained in:
parent
cb5b335acd
commit
b6dc307c99
@ -224,13 +224,16 @@ def list_extensions():
|
|||||||
|
|
||||||
# check for requirements
|
# check for requirements
|
||||||
for extension in extensions:
|
for extension in extensions:
|
||||||
|
if not extension.enabled:
|
||||||
|
continue
|
||||||
|
|
||||||
for req in extension.metadata.requires:
|
for req in extension.metadata.requires:
|
||||||
required_extension = loaded_extensions.get(req)
|
required_extension = loaded_extensions.get(req)
|
||||||
if required_extension is None:
|
if required_extension is None:
|
||||||
errors.report(f'Extension "{extension.name}" requires "{req}" which is not installed.', exc_info=False)
|
errors.report(f'Extension "{extension.name}" requires "{req}" which is not installed.', exc_info=False)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not extension.enabled:
|
if not required_extension.enabled:
|
||||||
errors.report(f'Extension "{extension.name}" requires "{required_extension.name}" which is disabled.', exc_info=False)
|
errors.report(f'Extension "{extension.name}" requires "{required_extension.name}" which is disabled.', exc_info=False)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user