Skip to content

Commit 1af3f77

Browse files
committed
fix type error
1 parent f636a4c commit 1af3f77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ffmpeg_normalize/_media_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ def _second_pass(self) -> Iterator[float]:
616616
raise e
617617
else:
618618
# only move the temp file if it's not a null device and ReplayGain is not enabled!
619-
if self.output_file != os.devnull and not self.ffmpeg_normalize.replaygain:
619+
if self.output_file != os.devnull and temp_file and not self.ffmpeg_normalize.replaygain:
620620
_logger.debug(
621621
f"Moving temporary file from {temp_file} to {self.output_file}"
622622
)

0 commit comments

Comments
 (0)