In older version of python, 'str' object has no attribute 'format error will be resulted if i try to format string. params consists of something like [u'name', '12']. How to do the following in % string formatting?
def str(params):
......
if params:
msg_str = msg_str.format(*params)