Skip to content

Commit

Permalink
update media_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Dec 6, 2024
1 parent 0b11154 commit 7461240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/helper/ext_utils/media_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from re import search as re_search
from time import time

import suppress
import contextlib
from aiofiles.os import makedirs, remove
from aiofiles.os import path as aiopath
from aioshutil import rmtree
Expand Down Expand Up @@ -493,7 +493,7 @@ async def split_file(
except Exception:
stderr = "Unable to decode the error!"

with suppress(Exception):
with contextlib.suppress(Exception):
await remove(out_path)

if multi_streams:
Expand Down

0 comments on commit 7461240

Please sign in to comment.