You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Label class is initialized with size instead of text.
The split function is attempted in None object instead of an empty string.
That will cause this:
File "/lib/adafruit_display_text/label.py", line 84, in __init__
AttributeError: 'NoneType' object has no attribute 'split'
This is code with this issue (look at lines 78 ans 84):
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: adafruit#141
When Label class is initialized with size instead of text.
The split function is attempted in None object instead of an empty string.
That will cause this:
This is code with this issue (look at lines 78 ans 84):
Adafruit_CircuitPython_Display_Text/adafruit_display_text/label.py
Lines 78 to 84 in 5934db7
To reproduce, simply create a Label like this:
This used to work, so I suspect it is a regression introduced here:
2b4f1ad
The text was updated successfully, but these errors were encountered: