Fixed autofocus 'PiCameraStreamer' object has no attribute 'annotate_text' error
This commit is contained in:
parent
b6a0a6395e
commit
58b2967f53
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ class AutofocusExtension(BaseExtension):
|
|||
positions: List[int] = []
|
||||
|
||||
# Some cameras may not have annotate_text. Reset if it does
|
||||
if getattr(camera, "annotate_text"):
|
||||
if getattr(camera, "annotate_text", None):
|
||||
setattr(camera, "annotate_text", "")
|
||||
|
||||
for _ in stage.scan_z(dz, return_to_start=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue