From 9387706f6144b36a5cf9f89a411eed7da43ebbe7 Mon Sep 17 00:00:00 2001 From: agatha Date: Fri, 10 Nov 2023 20:35:18 -0500 Subject: [PATCH] Handle 304 --- gitmon/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gitmon/api.py b/gitmon/api.py index 4fa6cc5..04e96aa 100644 --- a/gitmon/api.py +++ b/gitmon/api.py @@ -32,6 +32,10 @@ class GitHubApi: logging.warning(f'Failed to execute GET request: {str(e)}') return None + # 304 Not Modified + if response.status_code == '304': + return None + self.__parse_headers(response.headers) return response.json()