I get a html message that I have mapped as string and then I want to replace 3 variables with a parameter but I'm struggling with this. here is the code:
message = """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<style>
body {
!background-color: #ffffcc;
font-family:courier;
font-size: 120%
}
</style>
<div>
<h2 style="text-decoration:underline">Alert process failure</h2>
<p> The process <b>{{ }}</b> has failure in the method <b>{{ }}</b> due the error <b>{{ }}</b>. Please take a look the system log and take the required
actions in order to solve the problem ASAP and communicate the end users.</p>
</div>
</body>
</html>
"""
print(message.format('1','2','2'))
My error on the print is:
ValueError: expected ':' after conversion specifier
Event though I have included a doubt {{
and }}
like in other posts. The code is not going thru
Thanks for the help! AU