Problem
In novelforge/routes/export.py lines 571-574:
try:
progress_manager.update(token, {"illustration_token": illust_token})
except KeyError:
pass
If the progress entry is deleted while illustrations are generating, the KeyError is silently swallowed. The illustration is saved to disk but never linked to the progress data.
Why It Matters
Disk space consumed with orphaned images the user cannot access from the UI.
Recommended Fix
Log a warning instead of silently passing:
except KeyError:
logger.warning("Could not link illustration to novel (progress entry %s not found).", token)
Problem
In
novelforge/routes/export.pylines 571-574:If the progress entry is deleted while illustrations are generating, the KeyError is silently swallowed. The illustration is saved to disk but never linked to the progress data.
Why It Matters
Disk space consumed with orphaned images the user cannot access from the UI.
Recommended Fix
Log a warning instead of silently passing: