From 5b4c829cc0b2c3ad48e91a34eb208839deac6863 Mon Sep 17 00:00:00 2001 From: monosans Date: Sat, 18 Mar 2023 10:47:54 +0300 Subject: [PATCH] simplify error message --- proxy_scraper_checker/validators.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/proxy_scraper_checker/validators.py b/proxy_scraper_checker/validators.py index 51a079f..1e50455 100644 --- a/proxy_scraper_checker/validators.py +++ b/proxy_scraper_checker/validators.py @@ -64,11 +64,8 @@ def _get_supported_max_connections() -> Optional[int]: if soft_limit != hard_limit: try: resource.setrlimit(resource.RLIMIT_NOFILE, (hard_limit, hard_limit)) - except ValueError: - logger.exception( - "Failed setting MaxConnections. Please make a bug report in the" - " Issues section of the GitHub repository." - ) + except ValueError as e: + logger.warning("Failed setting MaxConnections: %s", e) else: soft_limit = hard_limit if soft_limit == resource.RLIM_INFINITY: