Add newline for error file writes
Some checks failed
ci/woodpecker/push/linting Pipeline failed

This commit is contained in:
RealStickman 2022-11-12 09:52:59 +01:00
parent b4de055429
commit 47a65eb8f7

View File

@ -375,7 +375,8 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False)
"FFMPEG error. Failed encoding "
+ inputfile
+ " to "
+ outputfile,
+ outputfile
+ "\n"
)
endtime = now()
@ -388,7 +389,9 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False)
except ffmpy.FFRuntimeError:
with open("error.log", "a") as file:
file.write(
"FFMPEG error. To calculate VMAF score of " + outputfile
"FFMPEG error. To calculate VMAF score of "
+ outputfile
+ "\n"
)
try:
@ -396,7 +399,9 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False)
except ffmpy.FFRuntimeError:
with open("error.log", "a") as file:
file.write(
"FFMPEG error. To calculate SSIM score of " + outputfile
"FFMPEG error. To calculate SSIM score of "
+ outputfile
+ "\n"
)
try:
@ -404,7 +409,9 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False)
except ffmpy.FFRuntimeError:
with open("error.log", "a") as file:
file.write(
"FFMPEG error. To calculate MSE score of " + outputfile
"FFMPEG error. To calculate MSE score of "
+ outputfile
+ "\n"
)
write_line(