Skip to content

Commit cc0677f

Browse files
committed
handling for avatar urls that are not good
1 parent e9f8496 commit cc0677f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/zorak/utilities/cog_helpers/_embeds.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ def embed_message_edit(some_username, orig_author, some_message_before, some_mes
117117
, color=discord.Color.dark_orange()
118118
, timestamp=datetime.utcnow()
119119
)
120-
121-
embed.set_thumbnail(
122-
url=orig_author.avatar
123-
)
120+
if orig_author.avatar is not None:
121+
embed.set_thumbnail(
122+
url=orig_author.avatar
123+
)
124124

125125
embed.add_field(
126126
name='Original message: '

0 commit comments

Comments
 (0)