Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkasirer committed Jan 16, 2025
1 parent 14a81e1 commit 21a6cc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compas_invocations2/grasshopper.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def yakerize(
try:
_download_yak_executable(target_dir)
except ValueError:
invoke.Exit("Failed to download the yak executable: {e}")
invoke.Exit("Failed to download the yak executable")

yak_exe_path: str = os.path.join(target_dir, "yak.exe")
yak_exe_path = os.path.abspath(yak_exe_path)
Expand All @@ -148,7 +148,7 @@ def yakerize(
os.system("cd")
try:
os.system(f"{yak_exe_path} build --platform win")
except Exception:
except Exception as e:
invoke.Exit(f"Failed to build the yak package: {e}")
if not any([f.endswith(".yak") for f in os.listdir(target_dir)]):
invoke.Exit("No .yak file was created in the build directory.")
Expand Down

0 comments on commit 21a6cc6

Please sign in to comment.