From 7dd4645a7bbd63fb84ca6327d3726710627847a5 Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Sun, 26 Aug 2012 20:02:59 +0200 Subject: [PATCH] Quick and hacky fix for console event view crashing on long torrent names --- deluge/ui/console/modes/eventview.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/eventview.py b/deluge/ui/console/modes/eventview.py index 91552fdd2..6b567b7c8 100644 --- a/deluge/ui/console/modes/eventview.py +++ b/deluge/ui/console/modes/eventview.py @@ -85,7 +85,10 @@ class EventView(BaseMode): elif i - self.offset < 0: continue - self.add_string(i+1-self.offset,event) + try: + 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: self.add_string(1,"{!white,black,bold!}No events to show yet")