Skip to content

Commit 04323bf

Browse files
committed
Fix cat facts keyerror
1 parent 9bfdbca commit 04323bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/cats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def cats(reply, bot):
2020
"""- gets a fucking fact about cats."""
2121
r = get_data('https://catfact.ninja/fact', reply, bot, params={'max_length': 100})
2222
json = r.json()
23-
response = json['facts']
23+
response = json['fact']
2424
return response
2525

2626

0 commit comments

Comments
 (0)