My linter lied to me

This commit is contained in:
Nexus 2024-04-14 23:24:40 +01:00
parent 47ff9f6110
commit 51454440d4
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -66,7 +66,7 @@ class AutoResponder(commands.Cog):
else: else:
self.log.info("No HEVC streams found in %s", uri) self.log.info("No HEVC streams found in %s", uri)
return return
with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False, delete_on_close=False) as tmp: with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False) as tmp:
tmp_path = pathlib.Path(tmp.name) tmp_path = pathlib.Path(tmp.name)
self.log.info("Transcoding %r to %r", uri, tmp_path) self.log.info("Transcoding %r to %r", uri, tmp_path)
args = [ args = [