mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 09:10:45 +00:00
use TypeError instead of generic Exception for normalize_scope
This commit is contained in:
1 parent
8622b885a0
commit
5c16cc25dd
1 file changed
+1
-1
+1
-1
@@ -57,7 +57,7 @@ def normalize_scope(scope):
|
||||
return Scope.make_string(scope)
|
||||
scopes = scope
|
||||
else:
|
||||
raise Exception(
|
||||
raise TypeError(
|
||||
"Unsupported scope value, please either provide a list of scopes, "
|
||||
"or a string of scopes separated by commas."
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user