str f'ormat'

This commit is contained in:
Daan Hoogland 2021-02-25 15:50:17 +01:00
parent 42b50baaac
commit 86ffc1e88e
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class CsRedundant(object):
except socket.error as e:
error_code = e.args[0]
error_string = e.args[1]
print("Process already running (%d:%s). Exiting" % (error_code, error_string))
print(f"Process already running ({error_code}:{error_string}). Exiting")
logging.info("Master is already running, waiting")
sleep(time_between)