mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-22 09:05:41 +07:00
Don't use bare 'except:'
They catch any exception, including KeyboardInterrupt, we don't want to catch it.
This commit is contained in:
@@ -204,7 +204,7 @@ def try_utime(self, filename, last_modified_hdr):
|
||||
return
|
||||
try:
|
||||
os.utime(filename, (time.time(), filetime))
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
return filetime
|
||||
|
||||
|
||||
Reference in New Issue
Block a user