We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f13aacc commit 92362acCopy full SHA for 92362ac
jokeapi/main.py
@@ -24,7 +24,7 @@ def build_request(
24
):
25
r = "https://sv443.net/jokeapi/v2/joke/"
26
27
- if any(c not in self.info["categories"] for c in category):
+ if any(c.title() not in self.info["categories"] for c in category):
28
raise ValueError(
29
f'''Invalid category selected.
30
You selected {category}.
0 commit comments