mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
ecbe9963ab
commit
64a2a45068
@ -185,7 +185,10 @@ class CursorPositionWidget(QWidget): # {{{
|
||||
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…
x
Reference in New Issue
Block a user