Skip to content

Commit

Permalink
Replace more generic ValueError with specific FileNotFoundError for l…
Browse files Browse the repository at this point in the history
…oad_mesh
  • Loading branch information
steinraf authored Aug 16, 2024
1 parent 1c0091d commit bba0755
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 bba0755

Please sign in to comment.