[compat] Add compat_contextlib_suppress
authordirkf <fieldhouse@gmx.net>
Fri, 1 Mar 2024 15:25:44 +0000 (15:25 +0000)
committerdirkf <fieldhouse@gmx.net>
Wed, 27 Mar 2024 13:11:17 +0000 (13:11 +0000)
commit182f63e82a390e138f4a133d3ccb9c838222b02d
treef7c28f322fddbdca6b46edc3a140d6d26239afa4
parent71211e7db7243377f862dfdea9a9c3a511df66c2
[compat] Add compat_contextlib_suppress

with compat_contextlib_suppress(*Exceptions):
    # code that fails silently for any of Exceptions
youtube_dl/compat.py