Added Kanji cog

This commit is contained in:
Robert 2020-08-11 15:52:13 +02:00
parent f27d195964
commit 66e8cc9250
2 changed files with 15 additions and 1 deletions

View file

@ -63,7 +63,7 @@ class JishoResponse():
def query(self):
url = TEMPLATE_URL.format(urllib.parse.quote_plus(self.query_string))
r = requests.get(url)
r = requests.get(url, headers=HEADER)
if r.status_code != 200:
print(f"ERROR: Failed to access Jisho API... {r.status_code}")