Properly use f-string

main
Alexander Neff 2023-11-12 23:14:04 +01:00
parent c9c676a03b
commit 862aef7ec6
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class NXCModule:
for account in output_stripped:
user, password = account.split(" ", 1)
password = password.replace("WHITESPACE_ERROR", " ")
context.log.highlight(user + ":" + f"{password}")
context.log.highlight(f"{user}:{password}")
if " " in password:
context.log.fail(f'Password contains whitespaces! The password for user "{user}" is: "{password}"')
except ValueError: