Skip to content

Commit

Permalink
skip story if cant display it
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic0 committed Jul 10, 2011
1 parent 14ddee8 commit b641aba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reddit_top
Expand Up @@ -200,6 +200,8 @@ class DisplayMode(object):
self.do_display(story)
except IndexError:
break
except curses.error:
continue

self.interface.body_win.refresh()

Expand Down Expand Up @@ -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'):
Expand Down

0 comments on commit b641aba

Please sign in to comment.