mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 18:36:44 +00:00
removed debug lines
This commit is contained in:
parent
d42be56dee
commit
54b4d2d5b4
@ -197,10 +197,9 @@ class HttpDirectory(RemoteDirectory):
|
|||||||
mtime=int(parse_date(date).timestamp()),
|
mtime=int(parse_date(date).timestamp()),
|
||||||
is_dir=False
|
is_dir=False
|
||||||
)
|
)
|
||||||
except pycurl.error as e:
|
except pycurl.error:
|
||||||
curl.close()
|
curl.close()
|
||||||
retries -= 1
|
retries -= 1
|
||||||
raise e
|
|
||||||
|
|
||||||
logger.debug("TimeoutError - _request_file")
|
logger.debug("TimeoutError - _request_file")
|
||||||
raise TimeoutError
|
raise TimeoutError
|
||||||
@ -215,11 +214,9 @@ class HttpDirectory(RemoteDirectory):
|
|||||||
self.curl.perform()
|
self.curl.perform()
|
||||||
|
|
||||||
return content.getvalue().decode("utf-8", errors="ignore")
|
return content.getvalue().decode("utf-8", errors="ignore")
|
||||||
except pycurl.error as e:
|
except pycurl.error:
|
||||||
self.curl.close()
|
self.curl.close()
|
||||||
retries -= 1
|
retries -= 1
|
||||||
print(e)
|
|
||||||
raise e
|
|
||||||
|
|
||||||
logger.debug("TimeoutError - _fetch_body")
|
logger.debug("TimeoutError - _fetch_body")
|
||||||
raise TimeoutError
|
raise TimeoutError
|
||||||
|
Loading…
x
Reference in New Issue
Block a user