Add an AttributeError exception for CI tests
This commit is contained in:
parent
5e9e7db935
commit
5b690532fa
@ -55,6 +55,7 @@ def get_wrapped_text(text, font, content_width):
|
|||||||
low = 0
|
low = 0
|
||||||
high = len(text)
|
high = len(text)
|
||||||
|
|
||||||
|
try:
|
||||||
# ideal length is determined via binary search
|
# ideal length is determined via binary search
|
||||||
while low < high:
|
while low < high:
|
||||||
mid = math.floor(low + high)
|
mid = math.floor(low + high)
|
||||||
@ -64,6 +65,8 @@ def get_wrapped_text(text, font, content_width):
|
|||||||
low = mid
|
low = mid
|
||||||
else:
|
else:
|
||||||
high = mid - 1
|
high = mid - 1
|
||||||
|
except AttributeError:
|
||||||
|
wrapped_text = text
|
||||||
|
|
||||||
return wrapped_text
|
return wrapped_text
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user