mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-06 02:30:50 -08:00
Improve logging of errors caused by localised strings that have been incorrectly translated
This commit is contained in:
parent
0bea79e9f4
commit
36e2809028
1 changed files with 3 additions and 2 deletions
|
|
@ -684,8 +684,9 @@ class XbmcContext(AbstractContext):
|
|||
return result % _args
|
||||
except TypeError:
|
||||
self.log.exception(('Localization error',
|
||||
'text_id: {text_id!r}',
|
||||
'args: {original_args!r}'),
|
||||
'String: {result!r} ({text_id!r})',
|
||||
'args: {original_args!r}'),
|
||||
result=result,
|
||||
text_id=text_id,
|
||||
original_args=args)
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue