diff --git a/CHANGELOG.md b/CHANGELOG.md index fc92c28..4383d7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,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 e7bd2b2..60200b7 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -2214,6 +2214,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)