aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/common.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-03-27 13:02:20 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-03-27 13:02:20 +0100
commit70a1165b32acf253905109e9b4f245295d67af1f (patch)
treed217fe80bed21e76accf73cd767804b231d1fe93 /youtube_dl/downloader/common.py
parentaf140002158c1079b1365392c6a48ea06ad23c82 (diff)
downloadyoutube-dl-70a1165b32acf253905109e9b4f245295d67af1f.tar.xz
Don't use bare 'except:'
They catch any exception, including KeyboardInterrupt, we don't want to catch it.
Diffstat (limited to 'youtube_dl/downloader/common.py')
-rw-r--r--youtube_dl/downloader/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/downloader/common.py b/youtube_dl/downloader/common.py
index 8ed5c19a6..ca14d64bc 100644
--- a/youtube_dl/downloader/common.py
+++ b/youtube_dl/downloader/common.py
@@ -204,7 +204,7 @@ class FileDownloader(object):
return
try:
os.utime(filename, (time.time(), filetime))
- except:
+ except Exception:
pass
return filetime