From 5c16cc25dd6e9a933b019c64a6d3eb00753fdd8e Mon Sep 17 00:00:00 2001 From: dieser-niko Date: Sun, 13 Oct 2024 22:35:48 +0200 Subject: [PATCH] use TypeError instead of generic Exception for normalize_scope --- spotipy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotipy/util.py b/spotipy/util.py index 138baa0e..66269472 100644 --- a/spotipy/util.py +++ b/spotipy/util.py @@ -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." )