diff --git a/AUTHORS.rst b/AUTHORS.rst index a3907a3..de5421c 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -6,3 +6,4 @@ The following organizations or individuals have contributed to this repo: - Steven Esser @ majurg - Tushar Goel @ TG1999 - Thomas Druez @ tdruez +- Keshav Priyadarshi @ keshav-space diff --git a/src/fetchcode/package_versions.py b/src/fetchcode/package_versions.py index bf3cf9c..5fa8116 100644 --- a/src/fetchcode/package_versions.py +++ b/src/fetchcode/package_versions.py @@ -58,7 +58,8 @@ def versions(purl): try: return router.process(purl) except NoRouteAvailable: - return + logger.error(f"Unsupported purl: {purl}") + raise @dataclasses.dataclass(frozen=True) @@ -521,7 +522,7 @@ def get_response(url, content_type="json", headers=None): logger.error( f"HTTP error occurred: {http_err} \n {traceback.format_exc()}", ) - return + raise if content_type == "binary": return resp.content