aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/embeds.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/embeds.py b/discord/embeds.py
index 3aaaeff3..6e1c1cee 100644
--- a/discord/embeds.py
+++ b/discord/embeds.py
@@ -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