diff --git a/CHANGELOG.md b/CHANGELOG.md index 2865cdd..77834f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ Add your changes below. ### Added +- Added a warning if the URI regex did not match the input. + ### Fixed ### Removed diff --git a/spotipy/client.py b/spotipy/client.py index 92fe1da..6981f88 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -2140,6 +2140,7 @@ class Spotify: def _get_uri(self, type, id): if self._is_uri(id): + warnings.warn(f"{repr(id)} did not match the Spotify URI RegEx.", UserWarning) return id else: return "spotify:" + type + ":" + self._get_id(type, id)