Skip to content

Commit

Permalink
[bugfix] Missing ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Dec 6, 2023
1 parent e4e3caa commit 368a7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speech_recognition/recognizers/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def create_request_builder(
if not isinstance(language, str):
raise ValueError("``language`` must be a string")
if key is not None and not isinstance(key, str):
raise "``key`` must be ``None`` or a string"
raise ValueError("``key`` must be ``None`` or a string")

if key is None:
key = "AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw"
Expand Down

0 comments on commit 368a7ef

Please sign in to comment.