Skip to content

Commit 92362ac

Browse files
authored
🐛Fixed, I promise
1 parent f13aacc commit 92362ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jokeapi/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def build_request(
2424
):
2525
r = "https://sv443.net/jokeapi/v2/joke/"
2626

27-
if any(c not in self.info["categories"] for c in category):
27+
if any(c.title() not in self.info["categories"] for c in category):
2828
raise ValueError(
2929
f'''Invalid category selected.
3030
You selected {category}.

0 commit comments

Comments
 (0)