diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2024-07-03 11:46:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-03 16:46:01 +0000 |
commit | cc767e9490056efaaa11c186b0d032e4b4969180 (patch) | |
tree | a8234f81ef7af87710503fe12575045375a5d308 /yt_dlp/utils/_utils.py | |
parent | d28aa87e215991023a0b2ea6fae0e000f283dcd1 (diff) |
[core] Fix `--ignore-no-formats-error` (#10345)
Fixes regression in 5ce582448ececb8d9c30c8c31f58330090ced03a
Closes #10344
Authored by: Grub4K
Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Diffstat (limited to 'yt_dlp/utils/_utils.py')
-rw-r--r-- | yt_dlp/utils/_utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py index b5e1e2950..e00c75f6a 100644 --- a/yt_dlp/utils/_utils.py +++ b/yt_dlp/utils/_utils.py @@ -5120,6 +5120,9 @@ class _UnsafeExtensionError(Exception): @classmethod def sanitize_extension(cls, extension, /, *, prepend=False): + if extension is None: + return None + if '/' in extension or '\\' in extension: raise cls(extension) |