From 0306704d69fc94191d59d9ecf00c814204ff58b2 Mon Sep 17 00:00:00 2001 From: n Date: Fri, 31 Jan 2025 21:20:16 -0600 Subject: [PATCH] more error handling --- fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch.py b/fetch.py index ef9973d..4cb11ae 100644 --- a/fetch.py +++ b/fetch.py @@ -30,6 +30,6 @@ def fetchQuoteData(quoteId): print(quoteData.json()) else: print(f"An error occured while saving the file: {quoteData.status_code}") - return None + return "This file probably doesn't exist." fetchQuoteData(178)