Repository: stable-diffusion-webui
Issue: TypeError: 'NoneType' object is not iterable
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [ ] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

venv "D:\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --xformers --medvram-sdxl --no-half-vae
Style database not found: D:\AI\stable-diffusion-webui\styles.csv
[-] ADetailer initialized. version: 24.1.1, num models: 14
dirname:  D:\AI\stable-diffusion-webui\localizations
localizations:  {'zh-Hans (Stable) [vladmandic]': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Stable) [vladmandic].json', 'zh-Hans (Stable)': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Stable).json', 'zh-Hans (Testing) [vladmandic]': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Testing) [vladmandic].json', 'zh-Hans (Testing)': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Testing).json'}
ControlNet preprocessor location: D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-01-24 06:37:30,310 - ControlNet - INFO - ControlNet v1.1.431
2024-01-24 06:37:30,380 - ControlNet - INFO - ControlNet v1.1.431
sd-webui-prompt-all-in-one background API service started successfully.
06:37:31 - ReActor - STATUS - Running v0.6.0 on Device: CUDA
Loading weights [aadddd3d75] from D:\AI\stable-diffusion-webui\models\Stable-diffusion\deliberate_v3.safetensors
Creating model from config: D:\AI\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 16.5s (prepare environment: 6.2s, import torch: 2.7s, import gradio: 0.8s, setup paths: 0.8s, initialize shared: 0.2s, other imports: 0.6s, load scripts: 3.9s, create ui: 0.6s, gradio launch: 0.5s).
Applying attention optimization: xformers... done.
activating extra network lora: TypeError
Traceback (most recent call last):
  File "D:\AI\stable-diffusion-webui\modules\extra_networks.py", line 145, in activate
    extra_network.activate(p, [])
  File "D:\AI\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 18, in activate
    p.all_prompts = [x + f"<lora:{additional}:{shared.opts.extra_networks_default_multiplier}>" for x in p.all_prompts]
TypeError: 'NoneType' object is not iterable


### Steps to reproduce the problem

venv "D:\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --xformers --medvram-sdxl --no-half-vae
Style database not found: D:\AI\stable-diffusion-webui\styles.csv
[-] ADetailer initialized. version: 24.1.1, num models: 14
dirname:  D:\AI\stable-diffusion-webui\localizations
localizations:  {'zh-Hans (Stable) [vladmandic]': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Stable) [vladmandic].json', 'zh-Hans (Stable)': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Stable).json', 'zh-Hans (Testing) [vladmandic]': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Testing) [vladmandic].json', 'zh-Hans (Testing)': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Testing).json'}
ControlNet preprocessor location: D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-01-24 06:37:30,310 - ControlNet - INFO - ControlNet v1.1.431
2024-01-24 06:37:30,380 - ControlNet - INFO - ControlNet v1.1.431
sd-webui-prompt-all-in-one background API service started successfully.
06:37:31 - ReActor - STATUS - Running v0.6.0 on Device: CUDA
Loading weights [aadddd3d75] from D:\AI\stable-diffusion-webui\models\Stable-diffusion\deliberate_v3.safetensors
Creating model from config: D:\AI\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 16.5s (prepare environment: 6.2s, import torch: 2.7s, import gradio: 0.8s, setup paths: 0.8s, initialize shared: 0.2s, other imports: 0.6s, load scripts: 3.9s, create ui: 0.6s, gradio launch: 0.5s).
Applying attention optimization: xformers... done.
activating extra network lora: TypeError
Traceback (most recent call last):
  File "D:\AI\stable-diffusion-webui\modules\extra_networks.py", line 145, in activate
    extra_network.activate(p, [])
  File "D:\AI\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 18, in activate
    p.all_prompts = [x + f"<lora:{additional}:{shared.opts.extra_networks_default_multiplier}>" for x in p.all_prompts]
TypeError: 'NoneType' object is not iterable


### What should have happened?

venv "D:\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --xformers --medvram-sdxl --no-half-vae
Style database not found: D:\AI\stable-diffusion-webui\styles.csv
[-] ADetailer initialized. version: 24.1.1, num models: 14
dirname:  D:\AI\stable-diffusion-webui\localizations
localizations:  {'zh-Hans (Stable) [vladmandic]': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Stable) [vladmandic].json', 'zh-Hans (Stable)': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Stable).json', 'zh-Hans (Testing) [vladmandic]': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Testing) [vladmandic].json', 'zh-Hans (Testing)': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Testing).json'}
ControlNet preprocessor location: D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-01-24 06:37:30,310 - ControlNet - INFO - ControlNet v1.1.431
2024-01-24 06:37:30,380 - ControlNet - INFO - ControlNet v1.1.431
sd-webui-prompt-all-in-one background API service started successfully.
06:37:31 - ReActor - STATUS - Running v0.6.0 on Device: CUDA
Loading weights [aadddd3d75] from D:\AI\stable-diffusion-webui\models\Stable-diffusion\deliberate_v3.safetensors
Creating model from config: D:\AI\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 16.5s (prepare environment: 6.2s, import torch: 2.7s, import gradio: 0.8s, setup paths: 0.8s, initialize shared: 0.2s, other imports: 0.6s, load scripts: 3.9s, create ui: 0.6s, gradio launch: 0.5s).
Applying attention optimization: xformers... done.
activating extra network lora: TypeError
Traceback (most recent call last):
  File "D:\AI\stable-diffusion-webui\modules\extra_networks.py", line 145, in activate
    extra_network.activate(p, [])
  File "D:\AI\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 18, in activate
    p.all_prompts = [x + f"<lora:{additional}:{shared.opts.extra_networks_default_multiplier}>" for x in p.all_prompts]
TypeError: 'NoneType' object is not iterable


### What browsers do you use to access the UI ?

_No response_

### Sysinfo

[sysinfo-2024-01-23-22-41.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/14030536/sysinfo-2024-01-23-22-41.json)


### Console logs

```Shell
venv "D:\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --xformers --medvram-sdxl --no-half-vae
Style database not found: D:\AI\stable-diffusion-webui\styles.csv
[-] ADetailer initialized. version: 24.1.1, num models: 14
dirname:  D:\AI\stable-diffusion-webui\localizations
localizations:  {'zh-Hans (Stable) [vladmandic]': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Stable) [vladmandic].json', 'zh-Hans (Stable)': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Stable).json', 'zh-Hans (Testing) [vladmandic]': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Testing) [vladmandic].json', 'zh-Hans (Testing)': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Testing).json'}
ControlNet preprocessor location: D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-01-24 06:37:30,310 - ControlNet - INFO - ControlNet v1.1.431
2024-01-24 06:37:30,380 - ControlNet - INFO - ControlNet v1.1.431
sd-webui-prompt-all-in-one background API service started successfully.
06:37:31 - ReActor - STATUS - Running v0.6.0 on Device: CUDA
Loading weights [aadddd3d75] from D:\AI\stable-diffusion-webui\models\Stable-diffusion\deliberate_v3.safetensors
Creating model from config: D:\AI\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 16.5s (prepare environment: 6.2s, import torch: 2.7s, import gradio: 0.8s, setup paths: 0.8s, initialize shared: 0.2s, other imports: 0.6s, load scripts: 3.9s, create ui: 0.6s, gradio launch: 0.5s).
Applying attention optimization: xformers... done.
activating extra network lora: TypeError
Traceback (most recent call last):
  File "D:\AI\stable-diffusion-webui\modules\extra_networks.py", line 145, in activate
    extra_network.activate(p, [])
  File "D:\AI\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 18, in activate
    p.all_prompts = [x + f"<lora:{additional}:{shared.opts.extra_networks_default_multiplier}>" for x in p.all_prompts]
TypeError: 'NoneType' object is not iterable
```


### Additional information

venv "D:\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --xformers --medvram-sdxl --no-half-vae
Style database not found: D:\AI\stable-diffusion-webui\styles.csv
[-] ADetailer initialized. version: 24.1.1, num models: 14
dirname:  D:\AI\stable-diffusion-webui\localizations
localizations:  {'zh-Hans (Stable) [vladmandic]': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Stable) [vladmandic].json', 'zh-Hans (Stable)': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Stable).json', 'zh-Hans (Testing) [vladmandic]': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Testing) [vladmandic].json', 'zh-Hans (Testing)': 'D:\\AI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-localization-zh_Hans\\localizations\\zh-Hans (Testing).json'}
ControlNet preprocessor location: D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-01-24 06:37:30,310 - ControlNet - INFO - ControlNet v1.1.431
2024-01-24 06:37:30,380 - ControlNet - INFO - ControlNet v1.1.431
sd-webui-prompt-all-in-one background API service started successfully.
06:37:31 - ReActor - STATUS - Running v0.6.0 on Device: CUDA
Loading weights [aadddd3d75] from D:\AI\stable-diffusion-webui\models\Stable-diffusion\deliberate_v3.safetensors
Creating model from config: D:\AI\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 16.5s (prepare environment: 6.2s, import torch: 2.7s, import gradio: 0.8s, setup paths: 0.8s, initialize shared: 0.2s, other imports: 0.6s, load scripts: 3.9s, create ui: 0.6s, gradio launch: 0.5s).
Applying attention optimization: xformers... done.
activating extra network lora: TypeError
Traceback (most recent call last):
  File "D:\AI\stable-diffusion-webui\modules\extra_networks.py", line 145, in activate
    extra_network.activate(p, [])
  File "D:\AI\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 18, in activate
    p.all_prompts = [x + f"<lora:{additional}:{shared.opts.extra_networks_default_multiplier}>" for x in p.all_prompts]
TypeError: 'NoneType' object is not iterable