summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-09-25 15:32:00 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-09-25 15:32:00 +0200
commit0ee2194d3c247afb14f03b0f4bad332988d858d5 (patch)
tree500983801c3a699e06f75a1cfc1ad61ac2da39a8 /src/windows.py
parentb5ce85869b12c1a0c8a9cf781f3d1dd989443355 (diff)
downloadpoezio-0ee2194d3c247afb14f03b0f4bad332988d858d5.tar.gz
poezio-0ee2194d3c247afb14f03b0f4bad332988d858d5.tar.bz2
poezio-0ee2194d3c247afb14f03b0f4bad332988d858d5.tar.xz
poezio-0ee2194d3c247afb14f03b0f4bad332988d858d5.zip
Backed out changeset e811b4e21013
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/windows.py b/src/windows.py
index 1bfe49db..2352a82a 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -137,13 +137,8 @@ class Win(object):
self._win.attron(curses.A_BOLD)
if attr_char in string.digits and attr_char != '':
color_str = text[next_attr_char+1:text.find('}', next_attr_char)]
- try:
- self._win.attron(to_curses_attr((int(color_str), -1)))
- except:
- self._win.attron(to_curses_attr((-1, -1)))
- text = text[next_attr_char+1+2:]
- else:
- text = text[next_attr_char+len(color_str)+2:]
+ self._win.attron(to_curses_attr((int(color_str), -1)))
+ text = text[next_attr_char+len(color_str)+2:]
else:
text = text[next_attr_char+2:]
next_attr_char = text.find('\x19')