Compare commits

...

2 Commits

Author SHA1 Message Date
9387706f61 Handle 304 2023-11-10 20:35:18 -05:00
203bfc7596 Add loguru for logging 2023-11-10 20:35:04 -05:00
3 changed files with 6 additions and 0 deletions

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

View File

@ -1,4 +1,5 @@
"""GitMon"""
from loguru import logger
from gitmon.api import GitHubApi

View File

@ -1 +1,2 @@
requests
loguru