remove flac tempfile

This commit is contained in:
BennyThink 2021-07-11 23:35:50 +08:00
parent 2854948da3
commit d182fe37e7
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481

View File

@ -14,6 +14,7 @@ import logging
import os
import platform
import re
import shutil
import subprocess
import tempfile
import threading
@ -235,7 +236,7 @@ async def handler(event):
await bot.send_file(chat_id, input_media)
# await bot.send_file(chat_id, flac_tmp)
os.unlink(flac_tmp)
tmp.close()