Fix bug in Embed.__len__ caused by footer without text

This commit is contained in:
Mikey authored and GitHub committed 2021-05-27 00:45:35 -04:00
1 parent f56543df15
commit f42e922696
1 file changed
+3 -3
+3 -3
View File
@@ -273,11 +273,11 @@ class Embed:
total += len(field['name']) + len(field['value'])
try:
footer = self._footer
except AttributeError:
footer_text = self._footer['text']
except (AttributeError, KeyError):
pass
else:
total += len(footer['text'])
total += len(footer_text)
try:
author = self._author