fix
This commit is contained in:
parent
91d017044b
commit
12a14f1a26
1 changed files with 2 additions and 2 deletions
4
fetch.py
4
fetch.py
|
@ -2,7 +2,7 @@ import requests
|
|||
|
||||
def fetchQuote(quoteId):
|
||||
quote = requests.get("https://quotes.everypizza.im/image/" + quoteId)
|
||||
if response.status_code == 200:
|
||||
return response.content
|
||||
if quote.status_code == 200:
|
||||
return quote.content
|
||||
else:
|
||||
return None
|
||||
|
|
Loading…
Add table
Reference in a new issue