The program should handle timeouts gracefully rather than doing a dumping the call stack.
Downloading Trailer: ***.Trailer.1080p.mov
Saving file to ***/***.Trailer.1080p.mov
Traceback (most recent call last):
File "bin/apple_trailer_downloader/download_trailers.py", line 506, in <module>
settings['video_types']
File "bin/apple_trailer_downloader/download_trailers.py", line 251, in downloadTrailersFromPage
downloadTrailerFile(trailerUrl['url'], destdir, trailerFileName)
File "bin/apple_trailer_downloader/download_trailers.py", line 237, in downloadTrailerFile
shutil.copyfileobj(f, fp, chunkSize)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 49, in copyfileobj
buf = fsrc.read(length)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 384, in read
data = self._sock.recv(left)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 612, in read
s = self.fp.read(amt)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 384, in read
data = self._sock.recv(left)
socket.error: [Errno 60] Operation timed out
The program should handle timeouts gracefully rather than doing a dumping the call stack.