diff --git a/instagrapi/mixins/photo.py b/instagrapi/mixins/photo.py index 9aa10411..7cda429f 100644 --- a/instagrapi/mixins/photo.py +++ b/instagrapi/mixins/photo.py @@ -139,7 +139,7 @@ def photo_rupload( tuple (Upload ID for the media, width, height) """ - assert isinstance(path, Path), f"Path must be Path, not {type(path)}" + assert isinstance(path, Path), f"Path must been Path, now {path} ({type(path)})" valid_extensions = ['.jpg', '.jpeg'] if path.suffix.lower() not in valid_extensions: raise ValueError("Invalid file format. Only JPG/JPEG files are supported.")