[openload] Don't use bare except when removing temp files

This commit is contained in:
Sergey M․ 2017-11-26 00:05:28 +07:00
parent 9ef909f2b2
commit 6ff27b8d5a
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -140,7 +140,7 @@ def __del__(self):
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):