diff --git a/spotipy/util.py b/spotipy/util.py index 544394a1..d0d84ef3 100644 --- a/spotipy/util.py +++ b/spotipy/util.py @@ -6,6 +6,7 @@ import logging from types import TracebackType +from collections.abc import Iterable import urllib3 @@ -48,7 +49,8 @@ def normalize_scope(scope): if scope: if isinstance(scope, str): scopes = scope.split(',') - elif isinstance(scope, list) or isinstance(scope, tuple): + + elif isinstance(scope, Iterable): scopes = scope else: raise Exception(