Skip to content

Commit

Permalink
chore: remove print on non-200
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeister committed Jul 23, 2024
1 parent 2680cd8 commit 8d8d8bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/oculus/modules/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ async def __get_page(self, session:aiohttp.ClientSession, url:str, headers:Dict[
if response.status == 200:
return await response.json()
else:
print(f'Failed to get results from GitHub. Status code: {response.status}')
if response.status == 422: # username not found
return None
# TODO status code specific handling? is that needed?
return None

async def __get_pages(self, url:str):
Expand Down

0 comments on commit 8d8d8bc

Please sign in to comment.