From b641aba231d3c115c69e64f2bbf710ac2598934e Mon Sep 17 00:00:00 2001 From: Nicolas Paris Date: Sun, 10 Jul 2011 23:56:38 +0200 Subject: [PATCH] skip story if cant display it --- reddit_top | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reddit_top b/reddit_top index b5af172..b18f200 100755 --- a/reddit_top +++ b/reddit_top @@ -200,6 +200,8 @@ class DisplayMode(object): self.do_display(story) except IndexError: break + except curses.error: + continue self.interface.body_win.refresh() @@ -463,8 +465,8 @@ class Interface(object): action.do(self) except KeyboardInterrupt: break - except curses.error, e: - raise ProgError, "Curses Error: %s" % e + #except curses.error, e: + #raise ProgError, "Curses Error: %s" % e def handle_keystroke(self, char): if char == ord('q'):