瀏覽代碼

Merge pull request #16192 from AUTOMATIC1111/patch-#16169

fix #16169 Py 3.9 compatibility
AUTOMATIC1111 1 年之前
父節點
當前提交
b2453d280a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/xyz_grid.py

+ 1 - 1
scripts/xyz_grid.py

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