mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[openload] Don't use bare except when removing temp files
This commit is contained in:
parent
9ef909f2b2
commit
6ff27b8d5a
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ def __del__(self):
|
||||||
for name in self._TMP_FILE_NAMES:
|
for name in self._TMP_FILE_NAMES:
|
||||||
try:
|
try:
|
||||||
os.remove(self._TMP_FILES[name].name)
|
os.remove(self._TMP_FILES[name].name)
|
||||||
except:
|
except (IOError, OSError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _save_cookies(self, url):
|
def _save_cookies(self, url):
|
||||||
|
|
Loading…
Reference in a new issue