mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Fix error when trying to clear empty image/thumbnail in embeds
This commit is contained in:
@ -286,7 +286,10 @@ class Embed:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if url is EmptyEmbed:
|
if url is EmptyEmbed:
|
||||||
del self._image
|
try:
|
||||||
|
del self._image
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
self._image = {
|
self._image = {
|
||||||
'url': str(url)
|
'url': str(url)
|
||||||
@ -325,7 +328,10 @@ class Embed:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if url is EmptyEmbed:
|
if url is EmptyEmbed:
|
||||||
del self._thumbnail
|
try:
|
||||||
|
del self._thumbnail
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
self._thumbnail = {
|
self._thumbnail = {
|
||||||
'url': str(url)
|
'url': str(url)
|
||||||
|
Reference in New Issue
Block a user