diff --git a/adafruit_bitmapsaver.py b/adafruit_bitmapsaver.py index d01685f..4b7d892 100644 --- a/adafruit_bitmapsaver.py +++ b/adafruit_bitmapsaver.py @@ -168,7 +168,7 @@ def save_pixels( :param palette: the Palette to use for looking up colors in the bitmap """ if not pixel_source: - if not hasattr(board, "DISPLAY"): + if not getattr(board, "DISPLAY", None): raise ValueError("Second argument must be a Bitmap or Display") pixel_source = board.DISPLAY pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy