Don't use bare 'except:'
[youtube-dl] / youtube_dl / downloader / common.py
index 3ae90021a28e661ab532a2d42a7c4e0826d1f46f..ca14d64bc192cd8d783ffe604198ec2b064e2cc9 100644 (file)
@@ -42,6 +42,8 @@ class FileDownloader(object):
     max_filesize:       Skip files larger than this size
     xattr_set_filesize: Set ytdl.filesize user xattribute with expected size.
                         (experimenatal)
+    external_downloader_args:  A list of additional command-line arguments for the
+                        external downloader.
 
     Subclasses of this one must re-define the real_download method.
     """
@@ -202,7 +204,7 @@ class FileDownloader(object):
             return
         try:
             os.utime(filename, (time.time(), filetime))
-        except:
+        except Exception:
             pass
         return filetime