_extract_filename fails during DNS resolution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyPI Mirror |
New
|
Undecided
|
Unassigned |
Bug Description
Get the following traceback if the external hostname doesn't resolve:
2011-02-04 05:29:34,907 DEBUG Processing package pthy
2011-02-04 05:29:35,379 DEBUG Head-Request to get filename for http://
Traceback (most recent call last):
File "./bin/pypimirror", line 15, in <module>
z3c.
File "/usr/home/
config[
File "/usr/home/
filename = self._extract_
File "/usr/home/
conn.
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
self.send(msg)
File "/usr/local/
self.connect()
File "/usr/local/
self.timeout)
File "/usr/local/
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno 8] hostname nor servname provided, or not known
This is a pretty simple fix, and if not done people's mirrors will be falling behind as the script just errors out completely if the external hostname cannot be resolved.
The package in question is: pypi.python. org/pypi/ pthy
http://