Repository: stable-diffusion-webui
Issue: [Bug]: TypeError: 'bool' object is not iterable
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

I downloaded the control net, but there was an error. Please help me

### Steps to reproduce the problem

1. Go to .... 
2. Press ....
3. ...


### What should have happened?

An error occurs after downloading the control net.
I downloaded all of the control nets, and then suddenly an error started to appear, and the same problem occurs when I remove the control net.
Can you tell me why this error occurred? And please suggest a solution.

### Version or Commit where the problem happens

v1.5.2

### What Python version are you running on ?

Python 3.10.x

### What platforms do you use to access the UI ?

Windows

### What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

### Cross attention optimization

Automatic

### What browsers do you use to access the UI ?

_No response_

### Command Line Arguments

```Shell
yes
```


### List of extensions

ebsynth_utility
openpose-editor
sd_extension-prompt_formatter
sd-3dmodel-loader
SD-CN-Animation
sd-dynamic-prompts
sdweb-easy-prompt-selector
sd-webui-3d-editor
sd-webui-3d-open-pose-editor
sd-webui-aspect-ratio-helper
sd-webui-controlnet
sd-webui-controlnet-fastload
sd-webui-inpaint-anything
sd-webui-openpose-editor
sd-webui-segment-anything
stable-diffusion-webui-wd14-tagger
<img width="1435" alt="2023-08-29 15;11;06" src="https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/132478591/80b0f5a7-9ab0-4c27-b8cc-7ff6e457bd78">

<img width="1435" alt="2023-08-29 15;11;44" src="https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/132478591/bdd49a54-54a3-455e-b24d-56532daac669">


<img width="1435" alt="2023-08-29 15;12;20" src="https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/132478591/abaa973e-1110-46bf-b45c-46274ed7d067">



### Console logs

```Shell
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 4 (delta 3), reused 4 (delta 3), pack-reused 0
Unpacking objects: 100% (4/4), 471 bytes | 58.00 KiB/s, done.
From https://github.com/AUTOMATIC1111/stable-diffusion-webui
   0c9282b8..00e393ce  release_candidate -> origin/release_candidate
Already up to date.
venv "C:\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.5.2
Commit hash: c9c8485bc1e8720aba70f029d25cba1c4abf2b5c
[Auto-Photoshop-SD] Attempting auto-update...
[Auto-Photoshop-SD] switch branch to extension branch.
checkout_result: Your branch is up to date with 'origin/master'.

[Auto-Photoshop-SD] Current Branch.
branch_result: * master

[Auto-Photoshop-SD] Fetch upstream.
fetch_result:
[Auto-Photoshop-SD] Pull upstream.
pull_result: Already up to date.


current transparent-background 1.2.4

Installing SD-CN-Animation requirement: scikit-image






Launching Web UI with arguments: --api
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
python_server_full_path:  C:\stable-diffusion-webui\extensions\Auto-Photoshop-StableDiffusion-Plugin\server/python_server
Loading weights [ff5cb8e794] from C:\stable-diffusion-webui\models\Stable-diffusion\animePastelDream_softBakedVae.safetensors
*** Error calling: C:\stable-diffusion-webui\extensions\sd-webui-aspect-ratio-helper\scripts\sd_webui_aspect_ratio_helper.py/ui
    Traceback (most recent call last):
      File "C:\stable-diffusion-webui\modules\scripts.py", line 339, in wrap_call
        return func(*args, **kwargs)
      File "C:\stable-diffusion-webui\extensions\sd-webui-aspect-ratio-helper\aspect_ratio_helper\main.py", line 54, in ui
        component.render()
      File "C:\stable-diffusion-webui\extensions\sd-webui-aspect-ratio-helper\aspect_ratio_helper\_components.py", line 66, in render
        gr.Button(
      File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\events.py", line 132, in __call__
        dep, dep_index = self.trigger.set_event_trigger(
      File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 267, in set_event_trigger
        "inputs": [block._id for block in inputs],
      File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 267, in <listcomp>
        "inputs": [block._id for block in inputs],
    AttributeError: 'NoneType' object has no attribute '_id'

---
2023-08-29 15:03:03,740 - ControlNetFastload - INFO - Load Controlnet Fastload Filter on isRemote=None and accessLevel=2╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\stable-diffusion-webui\launch.py:39 in <module>                                               │
│                                                                                                  │
│   36                                                                                             │
│   37                                                                                             │
│   38 if __name__ == "__main__":                                                                  │
│ ❱ 39 │   main()                                                                                  │
│   40                                                                                             │
│                                                                                                  │
│ C:\stable-diffusion-webui\launch.py:35 in main                                                   │
│                                                                                                  │
│   32 │   if args.test_server:                                                                    │
│   33 │   │   configure_for_tests()                                                               │
│   34 │                                                                                           │
│ ❱ 35 │   start()                                                                                 │
│   36                                                                                             │
│   37                                                                                             │
│   38 if __name__ == "__main__":                                                                  │
│                                                                                                  │
│ C:\stable-diffusion-webui\modules\launch_utils.py:394 in start                                   │
│                                                                                                  │
│   391 │   if '--nowebui' in sys.argv:                                                            │
│   392 │   │   webui.api_only()                                                                   │
│   393 │   else:                                                                                  │
│ ❱ 394 │   │   webui.webui()                                                                      │
│   395                                                                                            │
│                                                                                                  │
│ C:\stable-diffusion-webui\webui.py:393 in webui                                                  │
│                                                                                                  │
│   390 │   │   modules.script_callbacks.before_ui_callback()                                      │
│   391 │   │   startup_timer.record("scripts before_ui_callback")                                 │
│   392 │   │                                                                                      │
│ ❱ 393 │   │   shared.demo = modules.ui.create_ui()                                               │
│   394 │   │   startup_timer.record("create ui")                                                  │
│   395 │   │                                                                                      │
│   396 │   │   if not cmd_opts.no_gradio_queue:                                                   │
│                                                                                                  │
│ C:\stable-diffusion-webui\modules\ui.py:1500 in create_ui                                        │
│                                                                                                  │
│   1497 │   │   │   │   if ifid in ["extensions", "settings"]:                                    │
│   1498 │   │   │   │   │   continue                                                              │
│   1499 │   │   │   │                                                                             │
│ ❱ 1500 │   │   │   │   loadsave.add_block(interface, ifid)                                       │
│   1501 │   │   │                                                                                 │
│   1502 │   │   │   loadsave.add_component(f"webui/Tabs@{tabs.elem_id}", tabs)                    │
│   1503                                                                                           │
│                                                                                                  │
│ C:\stable-diffusion-webui\modules\ui_loadsave.py:109 in add_block                                │
│                                                                                                  │
│   106 │   │   │   │   # Tabs element can't have a label, have to use elem_id instead             │
│   107 │   │   │   │   self.add_component(f"{path}/Tabs@{x.elem_id}", x)                          │
│   108 │   │   │   for c in x.children:                                                           │
│ ❱ 109 │   │   │   │   self.add_block(c, path)                                                    │
│   110 │   │   elif x.label is not None:                                                          │
│   111 │   │   │   self.add_component(f"{path}/{x.label}", x)                                     │
│   112 │   │   elif isinstance(x, gr.Button) and x.value is not None:                             │
│                                                                                                  │
│ C:\stable-diffusion-webui\modules\ui_loadsave.py:109 in add_block                                │
│                                                                                                  │
│   106 │   │   │   │   # Tabs element can't have a label, have to use elem_id instead             │
│   107 │   │   │   │   self.add_component(f"{path}/Tabs@{x.elem_id}", x)                          │
│   108 │   │   │   for c in x.children:                                                           │
│ ❱ 109 │   │   │   │   self.add_block(c, path)                                                    │
│   110 │   │   elif x.label is not None:                                                          │
│   111 │   │   │   self.add_component(f"{path}/{x.label}", x)                                     │
│   112 │   │   elif isinstance(x, gr.Button) and x.value is not None:                             │
│                                                                                                  │
│ C:\stable-diffusion-webui\modules\ui_loadsave.py:109 in add_block                                │
│                                                                                                  │
│   106 │   │   │   │   # Tabs element can't have a label, have to use elem_id instead             │
│   107 │   │   │   │   self.add_component(f"{path}/Tabs@{x.elem_id}", x)                          │
│   108 │   │   │   for c in x.children:                                                           │
│ ❱ 109 │   │   │   │   self.add_block(c, path)                                                    │
│   110 │   │   elif x.label is not None:                                                          │
│   111 │   │   │   self.add_component(f"{path}/{x.label}", x)                                     │
│   112 │   │   elif isinstance(x, gr.Button) and x.value is not None:                             │
│                                                                                                  │
│ C:\stable-diffusion-webui\modules\ui_loadsave.py:109 in add_block                                │
│                                                                                                  │
│   106 │   │   │   │   # Tabs element can't have a label, have to use elem_id instead             │
│   107 │   │   │   │   self.add_component(f"{path}/Tabs@{x.elem_id}", x)                          │
│   108 │   │   │   for c in x.children:                                                           │
│ ❱ 109 │   │   │   │   self.add_block(c, path)                                                    │
│   110 │   │   elif x.label is not None:                                                          │
│   111 │   │   │   self.add_component(f"{path}/{x.label}", x)                                     │
│   112 │   │   elif isinstance(x, gr.Button) and x.value is not None:                             │
│                                                                                                  │
│ C:\stable-diffusion-webui\modules\ui_loadsave.py:109 in add_block                                │
│                                                                                                  │
│   106 │   │   │   │   # Tabs element can't have a label, have to use elem_id instead             │
│   107 │   │   │   │   self.add_component(f"{path}/Tabs@{x.elem_id}", x)                          │
│   108 │   │   │   for c in x.children:                                                           │
│ ❱ 109 │   │   │   │   self.add_block(c, path)                                                    │
│   110 │   │   elif x.label is not None:                                                          │
│   111 │   │   │   self.add_component(f"{path}/{x.label}", x)                                     │
│   112 │   │   elif isinstance(x, gr.Button) and x.value is not None:                             │
│                                                                                                  │
│ C:\stable-diffusion-webui\modules\ui_loadsave.py:111 in add_block                                │
│                                                                                                  │
│   108 │   │   │   for c in x.children:                                                           │
│   109 │   │   │   │   self.add_block(c, path)                                                    │
│   110 │   │   elif x.label is not None:                                                          │
│ ❱ 111 │   │   │   self.add_component(f"{path}/{x.label}", x)                                     │
│   112 │   │   elif isinstance(x, gr.Button) and x.value is not None:                             │
│   113 │   │   │   self.add_component(f"{path}/{x.value}", x)                                     │
│   114                                                                                            │
│                                                                                                  │
│ C:\stable-diffusion-webui\modules\ui_loadsave.py:86 in add_component                             │
│                                                                                                  │
│    83 │   │   │   │   else:                                                                      │
│    84 │   │   │   │   │   return val in x.choices                                                │
│    85 │   │   │                                                                                  │
│ ❱  86 │   │   │   apply_field(x, 'value', check_dropdown, getattr(x, 'init_field', None))        │
│    87 │   │                                                                                      │
│    88 │   │   def check_tab_id(tab_id):                                                          │
│    89 │   │   │   tab_items = list(filter(lambda e: isinstance(e, gr.TabItem), x.children))      │
│                                                                                                  │
│ C:\stable-diffusion-webui\modules\ui_loadsave.py:48 in apply_field                               │
│                                                                                                  │
│    45 │   │   │   saved_value = self.ui_settings.get(key, None)                                  │
│    46 │   │   │   if saved_value is None:                                                        │
│    47 │   │   │   │   self.ui_settings[key] = getattr(obj, field)                                │
│ ❱  48 │   │   │   elif condition and not condition(saved_value):                                 │
│    49 │   │   │   │   pass                                                                       │
│    50 │   │   │   else:                                                                          │
│    51 │   │   │   │   setattr(obj, field, saved_value)                                           │
│                                                                                                  │
│ C:\stable-diffusion-webui\modules\ui_loadsave.py:82 in check_dropdown                            │
│                                                                                                  │
│    79 │   │   if type(x) == gr.Dropdown:                                                         │
│    80 │   │   │   def check_dropdown(val):                                                       │
│    81 │   │   │   │   if getattr(x, 'multiselect', False):                                       │
│ ❱  82 │   │   │   │   │   return all(value in x.choices for value in val)                        │
│    83 │   │   │   │   else:                                                                      │
│    84 │   │   │   │   │   return val in x.choices                                                │
│    85                                                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: 'bool' object is not iterable
Creating model from config: C:\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying attention optimization: Doggettx... done.
Model loaded in 3.7s (load weights from disk: 1.2s, create model: 0.3s, apply weights to model: 0.8s, apply half(): 0.8s, move model to device: 0.5s).
```


### Additional information

_No response_