Description
get_release() only handles FileNotFoundError. If version.json exists but contains invalid JSON (e.g., partial write, packaging issue) or lacks the version field, json.JSONDecodeError/KeyError will propagate during Django settings import and prevent the app from starting.
Severity: high
File: sandbox/settings.py
Expected Behavior
The code should handle this case properly to avoid unexpected errors or degraded quality.
Description
get_release()only handlesFileNotFoundError. Ifversion.jsonexists but contains invalid JSON (e.g., partial write, packaging issue) or lacks theversionfield,json.JSONDecodeError/KeyErrorwill propagate during Django settings import and prevent the app from starting.Severity:
highFile:
sandbox/settings.pyExpected Behavior
The code should handle this case properly to avoid unexpected errors or degraded quality.