Compare commits
2 Commits
47e2bda181
...
9387706f61
Author | SHA1 | Date | |
---|---|---|---|
9387706f61 | |||
203bfc7596 |
@ -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()
|
||||||
|
|
||||||
|
1
main.py
1
main.py
@ -1,4 +1,5 @@
|
|||||||
"""GitMon"""
|
"""GitMon"""
|
||||||
|
from loguru import logger
|
||||||
from gitmon.api import GitHubApi
|
from gitmon.api import GitHubApi
|
||||||
|
|
||||||
|
|
||||||
|
@ -1 +1,2 @@
|
|||||||
requests
|
requests
|
||||||
|
loguru
|
Loading…
Reference in New Issue
Block a user