mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
ecbe9963ab
commit
64a2a45068
@ -185,7 +185,10 @@ class CursorPositionWidget(QWidget): # {{{
|
|||||||
if line is None:
|
if line is None:
|
||||||
self.la.setText('')
|
self.la.setText('')
|
||||||
else:
|
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)
|
text = _('Line: {0} : {1}').format(line, col)
|
||||||
if name:
|
if name:
|
||||||
text = name + ' : ' + text
|
text = name + ' : ' + text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user