Skip to content

Commit

Permalink
Merge branch 'GH-291' into 'main'
Browse files Browse the repository at this point in the history
Replace more generic ValueError with specific FileNotFoundError for load_mesh

Closes GH-291

See merge request omniverse/warp!681
  • Loading branch information
shi-eric committed Aug 16, 2024
2 parents 1c0091d + bba0755 commit 5b6f70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warp/sim/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def load_mesh(filename: str, method: str = None):
import os

if not os.path.exists(filename):
raise ValueError(f"File not found: {filename}")
raise FileNotFoundError(f"File not found: {filename}")

def load_mesh_with_method(method):
if method == "meshio":
Expand Down

0 comments on commit 5b6f70a

Please sign in to comment.