twister: Fix exception if twister fails to create symlink

This fixes a typo in the formatting code that caused an exception
if the symlink creation failed.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
This commit is contained in:
Tim Pambor 2025-07-16 21:24:11 +02:00 committed by Daniel DeGrasse
parent 1a7ce3f45e
commit 51989cbe0a

View File

@ -538,7 +538,7 @@ def try_making_symlink(source: str, link: str):
os.symlink(source, link) os.symlink(source, link)
except OSError as e: except OSError as e:
logger.error( logger.error(
"Error creating symlink: %s, attempting to copy.". str(e) "Error creating symlink: %s, attempting to copy.", str(e)
) )
shutil.copy(source, link) shutil.copy(source, link)