mirror of
https://git.juggalol.com/agatha/gitmon.git
synced 2024-11-22 15:36:43 +00:00
Handle 304
This commit is contained in:
parent
203bfc7596
commit
9387706f61
@ -32,6 +32,10 @@ class GitHubApi:
|
|||||||
logging.warning(f'Failed to execute GET request: {str(e)}')
|
logging.warning(f'Failed to execute GET request: {str(e)}')
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
# 304 Not Modified
|
||||||
|
if response.status_code == '304':
|
||||||
|
return None
|
||||||
|
|
||||||
self.__parse_headers(response.headers)
|
self.__parse_headers(response.headers)
|
||||||
return response.json()
|
return response.json()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user