Improve logging of errors caused by localised strings that have been incorrectly translated

This commit is contained in:
MoojMidge 2025-10-27 20:46:25 +11:00
parent 0bea79e9f4
commit 36e2809028

View file

@ -684,8 +684,9 @@ class XbmcContext(AbstractContext):
return result % _args
except TypeError:
self.log.exception(('Localization error',
'text_id: {text_id!r}',
'String: {result!r} ({text_id!r})',
'args: {original_args!r}'),
result=result,
text_id=text_id,
original_args=args)
return result