Fixed index out of range error
This commit is contained in:
parent
a6a7f71e08
commit
88a8e6af93
@ -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"])
|
||||
|
Reference in New Issue
Block a user