Fixed index out of range error

This commit is contained in:
Anon 2023-03-13 18:47:41 -07:00
parent a6a7f71e08
commit 88a8e6af93

View File

@ -154,12 +154,15 @@ class YandereBot(FediBot.YandereBot):
"picked": picked,
"media_list": media_list,
"spoiler": spoiler,
"message": message
"message": message,
"x": x,
"y": y
}
def after_post(self, picked):
if picked:
self.currentProfileIndex[self.currentIndexCount] += 1
x = picked["x"]
self.currentProfileIndex[x] += 1
self.currentIndexCount += 1
self.print_header_stats(picked["picked"])
os.remove(picked["picked"]["full_path"])