From ae7b6283ed5ead577d1a8f263d37d01717e2bb33 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 28 Dec 2023 15:13:11 -0800 Subject: [PATCH 1/1] FakeFetcher: Show bad URLs in error messages --- fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch.py b/fetch.py index 1d20701..b99938c 100644 --- a/fetch.py +++ b/fetch.py @@ -89,7 +89,7 @@ class FakeFetcher(Fetcher): def fetch(self, url: str) -> bytes: self._fetch_count += 1 if url not in self._resources: - raise requests.HTTPError("URL not found") + raise requests.HTTPError("URL not found", url) return self._resources[url] def request_count(self) -> int: -- 2.44.1