This commit is contained in:
Kovid Goyal 2013-12-22 22:24:01 +05:30
parent ecbe9963ab
commit 64a2a45068

View File

@ -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