astropy/astropy — pull request #857 by mdboom (2013-03-08 20:24:31+00:00)
Title: Delete the temporary file if a download fails or is interrupted

Pretty simple fix -- but without this if a download is `^C`'d it will remain on the filesystem.