From: Sergey M․ Date: Sat, 25 Nov 2017 17:05:28 +0000 (+0700) Subject: [openload] Don't use bare except when removing temp files X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=6ff27b8d5a11f0960f53b93a1ea2423d3384af21;p=youtube-dl [openload] Don't use bare except when removing temp files --- 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):