mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user