Repository: stable-diffusion-webui
Issue: [Bug]: AttributError: module 'launch' has no attribute 'args'
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

on windows 10 using firefox I was trying to update as I haven't updated in quite a while and a controlnet I was trying to use wasn't opening as expected. so decided to update. It went on a for a long time downloading Gbs of stuff (over 15Gb now!) and after it was done this one error keeps coming up. I had done a git stash and git pop to reload settings, and when that didn't work I thought it could be that my modified launch.py didn't play well with the newer version, so I replaced it with older versions (one which I believe was the originally installed one) but that didn't help.
![Capture](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/140893943/6f60d49c-4a36-4494-859a-ed27016e73e9)


### Steps to reproduce the problem

1. Go to .... git pull
2. Press ....allow it to update
3. ...error messages and it won't load anymore


### What should have happened?

should have downloaed the latest version and opened as normal

### Version or Commit where the problem happens

terminal screen doesn't appear to show a "version" but I did a git log -1 and it showed me this merge: a3ddf464 50973ec7 author: automatic1111 <16777216c@gmail.com> date: Thu Jul 27 09:02:22 2023 +0300  merge branch 'release candidate'

### 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 (GTX 16 below)

### Cross attention optimization

Automatic

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

Mozilla Firefox

### Command Line Arguments

```Shell
set PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.6,max_split_size_mb:128
```


### List of extensions

yes, a bunch of controlnet extensions mostly
![Captureextension](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/140893943/1560b477-8f38-4f6d-a369-b78582dfb831)


### Console logs

```Shell
venv "D:\Documents\misc_ai_test\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)]
Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a


No module 'xformers'. Proceeding without it.
If submitting an issue on github, please provide the full startup log for debugging purposes.

Initializing Dreambooth
Dreambooth revision: 3324b6ab7fa661cf7d6b5ef186227dc5e8ad1878
[!] xformers NOT installed.
[!] torch version 1.12.1+cu113 installed.
[!] torchvision version 0.13.1+cu113 installed.
[+] accelerate version 0.17.1 installed.
[+] diffusers version 0.14.0 installed.
[+] transformers version 4.26.1 installed.
[+] bitsandbytes version 0.35.4 installed.

#######################################################################################################
#                                       LIBRARY ISSUE DETECTED                                        #
#######################################################################################################
#
# torch is below the required 1.13.1+cu116 version.
# torchvision is below the required 0.14.1+cu116 version.
#
# Dreambooth may not work properly.
#
# TROUBLESHOOTING
# 1. Fully restart your project (not just the webpage)
# 2. Update your A1111 project and extensions
# 3. Dreambooth requirements should have installed automatically, but you can manually install them
#    by running the following 4 commands from the A1111 project root:
cd venv/Scripts
activate
cd ../..
pip install -r ./extensions/sd_dreambooth_extension/requirements.txt
#######################################################################################################


Launching Web UI with arguments:
Warning: Stable Diffusion XL not found at path D:\Documents\misc_ai_test\stable-diffusion-webui\repositories\generative-models\sgm
No module 'xformers'. Proceeding without it.
Traceback (most recent call last):
  File "D:\Documents\misc_ai_test\stable-diffusion-webui\launch.py", line 361, in <module>
    start()
  File "D:\Documents\misc_ai_test\stable-diffusion-webui\launch.py", line 352, in start
    import webui
  File "D:\Documents\misc_ai_test\stable-diffusion-webui\webui.py", line 54, in <module>
    from modules.call_queue import wrap_gradio_gpu_call, wrap_queued_call, queue_lock  # noqa: F401
  File "D:\Documents\misc_ai_test\stable-diffusion-webui\modules\call_queue.py", line 6, in <module>
    from modules import shared, progress, errors
  File "D:\Documents\misc_ai_test\stable-diffusion-webui\modules\shared.py", line 30, in <module>
    script_loading.preload_extensions(extensions_dir, parser, extension_list=launch.list_extensions(launch.args.ui_settings_file))
AttributeError: module 'launch' has no attribute 'args'
Press any key to continue . . .
```


### Additional information

_No response_