Don't use bare 'except:'
[youtube-dl] / youtube_dl / downloader / common.py
index 8ed5c19a6b8079c9807faa4fa7a505a398974975..ca14d64bc192cd8d783ffe604198ec2b064e2cc9 100644 (file)
@@ -204,7 +204,7 @@ class FileDownloader(object):
             return
         try:
             os.utime(filename, (time.time(), filetime))
-        except:
+        except Exception:
             pass
         return filetime