Traceback (most recent call last):


 "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap

self.run()


 "/usr/lib/python3.6/multiprocessing/process.py", line 93, in run

self._target(*self._args, **self._kwargs)


 "./safaribooks.py", line 795, in _thread_download_css

s.write(response.content)
AttributeError: 'int' object has no attribute 'content'

Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen

chunked=chunked)


 "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request

conn.request(method, url, **httplib_request_kw)


 "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request

self._send_request(method, url, body, headers, encode_chunked)


 "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)


 "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)


 "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1065, in _send_output

self.send(chunk)


 "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 986, in send

self.sock.sendall(data)
BrokenPipeError: [Errno 32] Broken pipe
