In the error checking, string interpolation argument missing

It was throwing the following error:

ValueError: zero length field name in format