Skip to content

Commit

Permalink
🛠️ fix: clean after sending files
Browse files Browse the repository at this point in the history
  • Loading branch information
FalfaChino committed May 20, 2024
1 parent 3b413ae commit 44d74f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nonebot_plugin_multincm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ async def upload_music(song: BaseSong):
name=file_name,
folder=folder_id,
)
if isinstance(file_path, Path):
file_path.unlink(missing_ok=True)


async def illegal_finish():
Expand Down

0 comments on commit 44d74f3

Please sign in to comment.