We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95bb72a commit ea1769aCopy full SHA for ea1769a
1 file changed
adafruit_button/sprite_button.py
@@ -58,6 +58,9 @@ def __init__(
58
selected_bmp_path=None,
59
transparent_index=None
60
):
61
+ if bmp_path is None:
62
+ raise ValueError("Please supply bmp_path. It cannot be None.")
63
+
64
super().__init__(
65
x=x,
66
y=y,
0 commit comments