diff --git a/PiCowbell_Camera_Demos/JPEG_Capture/code.py b/PiCowbell_Camera_Demos/JPEG_Capture/code.py index 49abce008..f84513764 100644 --- a/PiCowbell_Camera_Demos/JPEG_Capture/code.py +++ b/PiCowbell_Camera_Demos/JPEG_Capture/code.py @@ -94,7 +94,7 @@ for quality in range(2,55): #valid range is 2 to 54 inclusive except Exception: print(f"Quality {quality} was too big. Trying next lowest.") -if b==None: +if b is None: print("There wasn't enough system memory to allocate the lowest quality buffer.") jpeg = cam.capture(b)