Skip to content

Commit 7461240

Browse files
committed
update media_utils.py
1 parent 0b11154 commit 7461240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/helper/ext_utils/media_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from re import search as re_search
77
from time import time
88

9-
import suppress
9+
import contextlib
1010
from aiofiles.os import makedirs, remove
1111
from aiofiles.os import path as aiopath
1212
from aioshutil import rmtree
@@ -493,7 +493,7 @@ async def split_file(
493493
except Exception:
494494
stderr = "Unable to decode the error!"
495495

496-
with suppress(Exception):
496+
with contextlib.suppress(Exception):
497497
await remove(out_path)
498498

499499
if multi_streams:

0 commit comments

Comments
 (0)