mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 13:02:38 +00:00
Add suppressing of NotFound errors while deleting messages
This commit is contained in:
parent
f06f743179
commit
b978148e0f
1 changed files with 4 additions and 3 deletions
|
@ -1524,6 +1524,7 @@ class MsG:
|
|||
|
||||
finally:
|
||||
if messages:
|
||||
with suppress(err.NotFound):
|
||||
for msg in messages:
|
||||
await msg.delete()
|
||||
await message.delete()
|
||||
|
|
Loading…
Reference in a new issue