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 9a65556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ape/api/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from ethpm_types.source import Content
from ethpm_types.utils import Algorithm, compute_checksum
from packaging.version import InvalidVersion, Version
from pydantic import AnyUrl, ValidationError
from pydantic import AnyUrl

from ape.exceptions import ProjectError
from ape.logging import logger
Expand Down 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 9a65556

Please sign in to comment.