mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 22:05:54 +01:00
...
This commit is contained in:
parent
ecbe9963ab
commit
64a2a45068
1 changed files with 4 additions and 1 deletions
|
|
@ -185,7 +185,10 @@ def update_position(self, line=None, col=None, character=None):
|
|||
if line is None:
|
||||
self.la.setText('')
|
||||
else:
|
||||
name = unicodedata.name(character, None) if character else None
|
||||
try:
|
||||
name = unicodedata.name(character, None) if character else None
|
||||
except Exception:
|
||||
name = None
|
||||
text = _('Line: {0} : {1}').format(line, col)
|
||||
if name:
|
||||
text = name + ' : ' + text
|
||||
|
|
|
|||
Loading…
Reference in a new issue