Skip to content

Commit b3ddb0f

Browse files
fix excaption
1 parent 11e8cc3 commit b3ddb0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ async def backup_channel(channel, last_message_id):
288288
try:
289289
if last_message_id > 0:
290290
after = await channel.fetch_message(last_message_id)
291-
except discord.errors.NotFound:
291+
except nextcord.NotFound:
292292
print('\tLatch-on restore point vanished on discord. Doing a full grab of the channel.')
293293
pass
294294

@@ -322,7 +322,7 @@ async def backup_channel(channel, last_message_id):
322322
write_to_storage(backup_msg)
323323

324324
after = messages[-1]
325-
except discord.errors.NotFound:
325+
except nextcord.NotFound:
326326
print('\tUnable to find message to latch on.')
327327
except nextcord.Forbidden:
328328
print('\tNo permission to read channel. Check roles in discord!')

0 commit comments

Comments
 (0)