nl: return self.msg formatted with a tuple, with elements generated from return value of the function force_text with 2 arguments:
code: return self . msg % tuple ( force_text ( p , errors = 'replace' ) for p in self . params )