Skip to content

Commit 0db4de6

Browse files
committed
Custom error
1 parent 376b7e9 commit 0db4de6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/viam/components/component_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from viam.proto.common import Geometry
77
from viam.resource.base import ResourceBase
8+
from viam.errors import MethodNotImplementedError
89

910
if TYPE_CHECKING:
1011
from viam.resource.types import Subtype
@@ -49,4 +50,4 @@ async def get_geometries(self) -> List[Geometry]:
4950
Returns:
5051
List[Geometry]: The geometries associated with the Component.
5152
"""
52-
raise NotImplementedError()
53+
raise MethodNotImplementedError("get_geometries")

0 commit comments

Comments
 (0)