diff --git a/proxy_scraper_checker/settings.py b/proxy_scraper_checker/settings.py index de8d74b7c..dc55d65df 100644 --- a/proxy_scraper_checker/settings.py +++ b/proxy_scraper_checker/settings.py @@ -247,6 +247,13 @@ def __attrs_post_init__(self) -> None: msg = "geolocation can not be enabled if json output is disabled" raise ValueError(msg) + if not self.check_website and self.sort_by_speed: + logger.warning( + "Proxy checking is disabled, so sorting by speed is not" + " possible. Alphabetical sorting will be used instead." + ) + self.sort_by_speed = False + @check_website.validator def _validate_check_website( self,