aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-11-26 00:05:28 +0700
committerSergey M․ <dstftw@gmail.com>2017-11-26 00:05:28 +0700
commit6ff27b8d5a11f0960f53b93a1ea2423d3384af21 (patch)
tree7352fec929b044db8916215f558e583106a33777
parent9ef909f2b2bf81e16c4fd2e428a740a523ad61cf (diff)
downloadyoutube-dl-6ff27b8d5a11f0960f53b93a1ea2423d3384af21.zip
youtube-dl-6ff27b8d5a11f0960f53b93a1ea2423d3384af21.tar.gz
youtube-dl-6ff27b8d5a11f0960f53b93a1ea2423d3384af21.tar.bz2
[openload] Don't use bare except when removing temp files
-rw-r--r--youtube_dl/extractor/openload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py
index efa5d46..a99af12 100644
--- a/youtube_dl/extractor/openload.py
+++ b/youtube_dl/extractor/openload.py
@@ -140,7 +140,7 @@ class PhantomJSwrapper(object):
for name in self._TMP_FILE_NAMES:
try:
os.remove(self._TMP_FILES[name].name)
- except:
+ except (IOError, OSError):
pass
def _save_cookies(self, url):