mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 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)
|
return Scope.make_string(scope)
|
||||||
scopes = scope
|
scopes = scope
|
||||||
else:
|
else:
|
||||||
raise Exception(
|
raise TypeError(
|
||||||
"Unsupported scope value, please either provide a list of scopes, "
|
"Unsupported scope value, please either provide a list of scopes, "
|
||||||
"or a string of scopes separated by commas."
|
"or a string of scopes separated by commas."
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user