fix ui/misc: None desc crash, ratio/tile/lora split guards, parse_metadtaa typo, moondream type guard

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
QualiaRain
2026-06-12 05:08:03 -04:00
parent 1cf715fac2
commit 9f2374f5ff
9 changed files with 26 additions and 13 deletions
+4 -1
View File
@@ -68,7 +68,10 @@ def ar_change(ar, width, height):
if ar == 'AR':
return gr.update(), gr.update()
try:
(w, h) = [float(x) for x in ar.split(':')]
parts = [float(x) for x in ar.split(':')]
if len(parts) != 2:
raise ValueError(f"Expected 2 values, got {len(parts)}")
w, h = parts
except Exception as e:
log.warning(f"Invalid aspect ratio: {ar} {e}")
return gr.update(), gr.update()