Skip to content

Commit

Permalink
fix: larger exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 9, 2023
1 parent 8015dae commit 9a5916f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ape/api/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def _load_manifest_from_file(file_path: Path) -> Optional[PackageManifest]:

try:
return PackageManifest.model_validate_json(file_path.read_text())
except ValidationError as err:
except Exception as err:
logger.warning(f"Existing manifest file '{file_path}' corrupted. Re-building.")
logger.debug(str(err))
return None
Expand Down

0 comments on commit 9a5916f

Please sign in to comment.