[openload] Don't use bare except when removing temp files
authorSergey M․ <dstftw@gmail.com>
Sat, 25 Nov 2017 17:05:28 +0000 (00:05 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 25 Nov 2017 17:05:28 +0000 (00:05 +0700)
youtube_dl/extractor/openload.py

index efa5d4601132d903e5ba40cf88e5eee8f199a23c..a99af12a409a5a5e4f0c7b4d420e202a171fb207 100644 (file)
@@ -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):