capture_image in stub raises NotImplemented
This commit is contained in:
parent
2f9e37a02f
commit
7052917ff9
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ class CameraStub(BaseCamera):
|
||||||
@thing_action
|
@thing_action
|
||||||
def capture_image(self, stream_name, wait):
|
def capture_image(self, stream_name, wait):
|
||||||
"""Capture a PIL image from stream stream_name with timeout wait"""
|
"""Capture a PIL image from stream stream_name with timeout wait"""
|
||||||
raise Exception
|
raise NotImplementedError("Cameras must not inherit from CameraStub")
|
||||||
|
|
||||||
|
|
||||||
CameraDependency = direct_thing_client_dependency(CameraStub, "/camera/")
|
CameraDependency = direct_thing_client_dependency(CameraStub, "/camera/")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue