diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-11-26 00:05:28 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-11-26 00:05:28 +0700 |
commit | 6ff27b8d5a11f0960f53b93a1ea2423d3384af21 (patch) | |
tree | 7352fec929b044db8916215f558e583106a33777 /youtube_dl/extractor | |
parent | 9ef909f2b2bf81e16c4fd2e428a740a523ad61cf (diff) |
[openload] Don't use bare except when removing temp files
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/openload.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py index efa5d4601..a99af12a4 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): |