Commit 58b2967f authored by Joel Collins's avatar Joel Collins
Browse files

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

parent b6a0a639
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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):