Changing the error type of the warp.sim.load_mesh function for files which don't exist makes it easier to differentiate between wrong paths and invalid meshes programmatically.
Example: Iterating over multiple directories to find a mesh with a given name.
Changelog
Changes
raise ValueError(f"File not found: {filename}")
to
raise FileNotFoundError(f"File not found: {filename}")
Before your PR is "Ready for review"
[X] Do you agree to the terms under which contributions are accepted as described in Section 9 the Warp License?
Category
Description
Changing the error type of the warp.sim.load_mesh function for files which don't exist makes it easier to differentiate between wrong paths and invalid meshes programmatically.
Example: Iterating over multiple directories to find a mesh with a given name.
Changelog
Changes
raise ValueError(f"File not found: {filename}")
toraise FileNotFoundError(f"File not found: {filename}")
Before your PR is "Ready for review"
stubs.py
,functions.rst
)?ruff check
andruff format --check
?