Repro
tmp=$(mktemp -d /tmp/goboscript-sb3-no-project-XXXXXX)
python3 - <<'PY' "$tmp/empty.sb3"
import sys, zipfile
with zipfile.ZipFile(sys.argv[1], 'w'):
pass
PY
python3 tools/sb3.py --validate "$tmp/empty.sb3"
Observed:
Traceback (most recent call last):
File "tools/sb3.py", line 51, in <module>
with zf.open("project.json") as f:
...
KeyError: "There is no item named 'project.json' in the archive"
This also happens with empty .sb3 files left behind by failed compiler runs.
Expected
tools/sb3.py should print a normal error and exit nonzero when project.json is missing, not throw a Python traceback.
Repro
Observed:
This also happens with empty
.sb3files left behind by failed compiler runs.Expected
tools/sb3.pyshould print a normal error and exit nonzero whenproject.jsonis missing, not throw a Python traceback.