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:
parent
1a7ce3f45e
commit
51989cbe0a
@ -538,7 +538,7 @@ def try_making_symlink(source: str, link: str):
|
||||
os.symlink(source, link)
|
||||
except OSError as e:
|
||||
logger.error(
|
||||
"Error creating symlink: %s, attempting to copy.". str(e)
|
||||
"Error creating symlink: %s, attempting to copy.", str(e)
|
||||
)
|
||||
shutil.copy(source, link)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user