Skip to content

Commit

Permalink
fix image extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Phelan164 committed Oct 30, 2023
1 parent 45c843e commit baa8022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instagrapi/mixins/photo.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def photo_upload(
An object of Media class
"""
path = Path(path)
valid_extensions = [".jpg", ".jpeg", ".png", "webp"]
valid_extensions = [".jpg", ".jpeg", ".png", ".webp"]
if path.suffix.lower() not in valid_extensions:
raise ValueError("Invalid file format. Only JPG/JPEG/PNG/WEBP files are supported.")

Expand Down

0 comments on commit baa8022

Please sign in to comment.