mirror of https://github.com/coddrago/Heroku
Fix fantom message with exception when trying to raise MessageNotModified
parent
fa1ff8527a
commit
5b7a869f26
|
@ -210,12 +210,13 @@ class Utils(InlineUnit):
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
except MessageNotModified:
|
except MessageNotModified:
|
||||||
try:
|
if query:
|
||||||
await query.answer()
|
try:
|
||||||
except InvalidQueryID:
|
await query.answer()
|
||||||
pass # Just ignore that error, bc we need to just
|
except InvalidQueryID:
|
||||||
# remove preloader from user's button, if message
|
pass # Just ignore that error, bc we need to just
|
||||||
# was deleted
|
# remove preloader from user's button, if message
|
||||||
|
# was deleted
|
||||||
|
|
||||||
except RetryAfter as e:
|
except RetryAfter as e:
|
||||||
logger.info(f"Sleeping {e.timeout}s on aiogram FloodWait...")
|
logger.info(f"Sleeping {e.timeout}s on aiogram FloodWait...")
|
||||||
|
|
Loading…
Reference in New Issue