Skip to content

Commit

Permalink
use TypeError instead of generic Exception for normalize_scope
Browse files Browse the repository at this point in the history
  • Loading branch information
dieser-niko committed Oct 13, 2024
1 parent 8622b88 commit 5c16cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotipy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down

0 comments on commit 5c16cc2

Please sign in to comment.