fix #16169 Py 3.9 compatibility
This commit is contained in:
AUTOMATIC1111 2024-07-13 09:29:47 +03:00 committed by GitHub
commit b2453d280a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,7 +118,7 @@ def apply_size(p, x: str, xs) -> None:
def find_vae(name: str): def find_vae(name: str):
if name := name.strip().lower() in ('auto', 'automatic'): if (name := name.strip().lower()) in ('auto', 'automatic'):
return 'Automatic' return 'Automatic'
elif name == 'none': elif name == 'none':
return 'None' return 'None'