Handle 304

This commit is contained in:
agatha 2023-11-10 20:35:18 -05:00
parent 203bfc7596
commit 9387706f61

View File

@ -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()