mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 10:31:17 -08:00
manual fixes for some C408
This commit is contained in:
parent
a5121e7a06
commit
d25219b7e8
7 changed files with 15 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue