Commit d337b29
committed
label.py: Fix Label when initial text is not provided
This change addresses cases when Label class is initialized with
max_glyphs instead of text. In such cases, the split function is
attempted on None object instead of an empty string:
File "/lib/adafruit_display_text/label.py", line 84, in __init__
AttributeError: 'NoneType' object has no attribute 'split'
Fixes: #1411 parent 5934db7 commit d337b29
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments