Quick and hacky fix for console event view crashing on long torrent names

This commit is contained in:
Asmageddon 2012-08-26 20:02:59 +02:00
parent 0bf1379cc5
commit 7dd4645a7b
1 changed files with 4 additions and 1 deletions

View File

@ -85,7 +85,10 @@ class EventView(BaseMode):
elif i - self.offset < 0: elif i - self.offset < 0:
continue continue
try:
self.add_string(i+1-self.offset,event) self.add_string(i+1-self.offset,event)
except curses.error:
pass #This'll just cut the line. Note: This seriously should be fixed in a better way
else: else:
self.add_string(1,"{!white,black,bold!}No events to show yet") self.add_string(1,"{!white,black,bold!}No events to show yet")