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)}')
|
||||
return None
|
||||
|
||||
# 304 Not Modified
|
||||
if response.status_code == '304':
|
||||
return None
|
||||
|
||||
self.__parse_headers(response.headers)
|
||||
return response.json()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user