use TypeError instead of generic Exception for normalize_scope

This commit is contained in:
dieser-niko 2024-10-13 22:35:48 +02:00
parent 8622b885a0
commit 5c16cc25dd

View File

@ -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."
) )