Updated variable name to be consistent with inherited name

This commit is contained in:
Anon 2024-01-07 19:30:03 -08:00
parent 0e7f9d1ffa
commit 76b008a499

View File

@ -92,12 +92,12 @@ class YandereBot(FediBot.YandereBot):
return None return None
# Returns a list of tuples that contain the media list path and media mastodon dictionary # Returns a list of tuples that contain the media list path and media mastodon dictionary
def upload_media_list_validate(self, media_list): def upload_media_list_validate(self, path_list):
# Check to make sure the paths in media_list actually exist # Check to make sure the paths in media_list actually exist
super(YandereBot, self).upload_media_list_validate(media_list) super(YandereBot, self).upload_media_list_validate(path_list)
# Validate picked # Validate picked
for path in media_list: for path in path_list:
if not self.valid_mimetype(path): if not self.valid_mimetype(path):
raise InvalidMimeType("Invalid mime type") raise InvalidMimeType("Invalid mime type")
elif not self.valid_file_size(path): elif not self.valid_file_size(path):