Skip to content

Commit

Permalink
fix last msg return on empty channel
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jan 17, 2024
1 parent 1658b61 commit 753989f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,10 @@ async def backup_channel(channel, last_message_id):
else:
print(f'No manifest for {channel.guild.id} - {channel.id}. Likly empty channel. Skipping S3 upload.')

return after.id
if after is None:
return -1
else:
return after.id


def get_loc_path(channel):
Expand Down

0 comments on commit 753989f

Please sign in to comment.