mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
use TypeError instead of generic Exception for normalize_scope
This commit is contained in:
parent
8622b885a0
commit
5c16cc25dd
@ -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."
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user