Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Add fetch errors #1

Closed
RickBarretto opened this issue May 21, 2022 · 1 comment
Closed

Add fetch errors #1

RickBarretto opened this issue May 21, 2022 · 1 comment

Comments

@RickBarretto
Copy link
Owner

https://github.com/RickBarretto/pre-audit/blob/df96c30e1e5467ffdea573b53d50b798a996d178/src/core/fetch_api.py

Needs to handle http errors and handle "dependency not found".

Cause: when the package isn't in database, it returns this error:

return [(report["id"], report["details"]) for report in self.reports]
TypeError: 'NoneType' object is not iterable
RickBarretto added a commit that referenced this issue May 21, 2022
RickBarretto added a commit that referenced this issue May 21, 2022
RickBarretto added a commit that referenced this issue May 21, 2022
- turn API function into class
- raise error
- requests are did by internal method
RickBarretto added a commit that referenced this issue May 21, 2022
RickBarretto added a commit that referenced this issue May 21, 2022
RickBarretto added a commit that referenced this issue May 21, 2022
RickBarretto added a commit that referenced this issue May 21, 2022
RickBarretto added a commit that referenced this issue May 21, 2022
@RickBarretto RickBarretto mentioned this issue May 21, 2022
3 tasks
RickBarretto added a commit that referenced this issue May 21, 2022
@RickBarretto
Copy link
Owner Author

Closed by #2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant