Skip to content

Commit 16bf0ba

Browse files
w-e-wSLAPaper
authored andcommitted
fix AUTOMATIC1111#16169 Py 3.9 compatibility
Co-Authored-By: SLAPaper Pang <[email protected]>
1 parent 000a8ca commit 16bf0ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/xyz_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def apply_size(p, x: str, xs) -> None:
107107

108108

109109
def find_vae(name: str):
110-
if name := name.strip().lower() in ('auto', 'automatic'):
110+
if (name := name.strip().lower()) in ('auto', 'automatic'):
111111
return 'Automatic'
112112
elif name == 'none':
113113
return 'None'

0 commit comments

Comments
 (0)