Trying to try / catch an exception in string format function.
Anyone has an idea how to do this?
"Hi {var1}! Here is {var2} Test!".format(var1= getMessage(), var2=getAnotherMessage())
Is there a way to try / catch an exception in the individual getMessage() and getAnotherMessage() functions?
.format().