Skip to content

Commit

Permalink
refactor: from err
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 18, 2023
1 parent 6592043 commit bd5f20a
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 @@ -414,15 +414,15 @@ def _extract_local_manifest(
try:
manifest = PackageManifest.parse_file(project_path)

except ValueError:
except ValueError as err:
if project_path.parent.is_dir():
logger.warning(
"Was given a file-path to a non-manifest file. Using parent directory."
)
project_path = project_path.parent

else:
raise ProjectError(f"Invalid local project '{project_path}'.")
raise ProjectError(f"Invalid local project '{project_path}'.") from err

else:
# Was given a path to a manifest JSON.
Expand Down

0 comments on commit bd5f20a

Please sign in to comment.