Fixed autofocus 'PiCameraStreamer' object has no attribute 'annotate_text' error

This commit is contained in:
Joel Collins 2020-12-07 10:12:30 +00:00
parent b6a0a6395e
commit 58b2967f53

View file

@ -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):