From 54b4d2d5b4817854976c0e3703fd2f6ee7c03547 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 23 Aug 2018 12:02:07 -0400 Subject: [PATCH] removed debug lines --- crawl_server/remote_http.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crawl_server/remote_http.py b/crawl_server/remote_http.py index 2d60728..7d73c8e 100644 --- a/crawl_server/remote_http.py +++ b/crawl_server/remote_http.py @@ -197,10 +197,9 @@ class HttpDirectory(RemoteDirectory): mtime=int(parse_date(date).timestamp()), is_dir=False ) - except pycurl.error as e: + except pycurl.error: curl.close() retries -= 1 - raise e logger.debug("TimeoutError - _request_file") raise TimeoutError @@ -215,11 +214,9 @@ class HttpDirectory(RemoteDirectory): self.curl.perform() return content.getvalue().decode("utf-8", errors="ignore") - except pycurl.error as e: + except pycurl.error: self.curl.close() retries -= 1 - print(e) - raise e logger.debug("TimeoutError - _fetch_body") raise TimeoutError