diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index f88f15d70..0e48569e3 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -599,7 +599,7 @@ def report_deprecation(val, old, new=None): warnings.append( 'Using allow-unsafe-ext opens you up to potential attacks. ' 'Use with great care!') - _UnsafeExtensionError.sanitize_extension = lambda x: x + _UnsafeExtensionError.sanitize_extension = lambda x, prepend=False: x return warnings, deprecation_warnings