From 3ed8de92ab45596eb1352c964dba7ec75383e5f9 Mon Sep 17 00:00:00 2001 From: Peter Vacho Date: Mon, 25 Nov 2024 13:39:36 +0100 Subject: [PATCH] Fix orange color not working --- src/link_scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/link_scraper.py b/src/link_scraper.py index 7061440..bc957f1 100644 --- a/src/link_scraper.py +++ b/src/link_scraper.py @@ -87,13 +87,13 @@ def standard_urlmap_exception_suppressor(exc: Exception, url: httpx.URL) -> bool "Got ", ("Non-HTML Content-Type Header", "red"), ", (", - (str(exc.response.headers.get("Content-Type", "")), "orange"), + (str(exc.response.headers.get("Content-Type", "")), "grey69"), ")", ) return True if isinstance(exc, httpx.TransportError): - print_exc("Got ", (exc.__class__.__qualname__, "red"), ", (", (str(exc), "orange"), ")") + print_exc("Got ", (exc.__class__.__qualname__, "red"), ", (", (str(exc), "grey69"), ")") return True if isinstance(exc, ParserRejectedMarkup):