forked from n/quotes-bot-python
more error handling
This commit is contained in:
parent
87cc4999dc
commit
0306704d69
1 changed files with 1 additions and 1 deletions
2
fetch.py
2
fetch.py
|
@ -30,6 +30,6 @@ def fetchQuoteData(quoteId):
|
||||||
print(quoteData.json())
|
print(quoteData.json())
|
||||||
else:
|
else:
|
||||||
print(f"An error occured while saving the file: {quoteData.status_code}")
|
print(f"An error occured while saving the file: {quoteData.status_code}")
|
||||||
return None
|
return "This file probably doesn't exist."
|
||||||
|
|
||||||
fetchQuoteData(178)
|
fetchQuoteData(178)
|
||||||
|
|
Loading…
Add table
Reference in a new issue