Skip to content

Commit b3415dd

Browse files
authored
fix category bug
1 parent 79fb25d commit b3415dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jokeapi/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def build_request(
2626

2727
if len(category):
2828
for c in category:
29-
if not c.title() in self.info["categories"]:
29+
if not c.lower() in self.info["categories"]:
3030
raise ValueError(
3131
f'''Invalid category selected.
3232
You selected {c}.

0 commit comments

Comments
 (0)