Fix XYZ grid state.end leak on invalid axis values in xyz_grid_on

Same except-path as the previous commit: jobid is begun before the
try block but never ended on the error return, mirroring the
xyz_grid.py fix.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
QualiaRain
2026-06-12 02:42:15 -04:00
parent 1fdb9ecfdb
commit 58386c657d
+1
View File
@@ -268,6 +268,7 @@ class XYZGridScript(scripts_manager.Script):
log.error(f"XYZ grid: invalid axis values {e}")
errors.display(e, 'xyz')
active = False
shared.state.end(jobid)
return None
Image.MAX_IMAGE_PIXELS = None # disable check in Pillow and rely on check below to allow large custom image sizes