Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Avoid crashing when invalid __install__.json file exists.
Fixes #293
  • Loading branch information
zooba committed Mar 31, 2026
commit 55390c538793aa0dad6400c32e5e620226109eda
8 changes: 8 additions & 0 deletions src/manage/installs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ def _get_installs(install_dir):
try:
with p.open() as f:
j = json.load(f)
except ValueError:
LOGGER.warn(
"Failed to read install at %s. You may have a broken "
"install, which can be cleaned up by deleting the directory.",
d
)
LOGGER.debug("ERROR", exc_info=True)
continue
except FileNotFoundError:
continue

Expand Down