diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-10 08:55:09 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-10 08:55:09 +0000 |
commit | d25219b7e889cf34bccae9cb88497708796efda2 (patch) | |
tree | 0fe0a3860a440b08ad9ec48b689bc1cb1016bac5 /modules/api | |
parent | a5121e7a0623db328a9462d340d389ed6737374a (diff) | |
download | stable-diffusion-webui-gfx803-d25219b7e889cf34bccae9cb88497708796efda2.tar.gz stable-diffusion-webui-gfx803-d25219b7e889cf34bccae9cb88497708796efda2.tar.bz2 stable-diffusion-webui-gfx803-d25219b7e889cf34bccae9cb88497708796efda2.zip |
manual fixes for some C408
Diffstat (limited to 'modules/api')
-rw-r--r-- | modules/api/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 9efb558e..594fa655 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -165,7 +165,7 @@ def api_middleware(app: FastAPI): class Api: def __init__(self, app: FastAPI, queue_lock: Lock): if shared.cmd_opts.api_auth: - self.credentials = dict() + self.credentials = {} for auth in shared.cmd_opts.api_auth.split(","): user, password = auth.split(":") self.credentials[user] = password |