Error handling when getch() throws an error
Currently untested, but should work well enough. Doing this as an reference implementation.pull/32/head
parent
da33b69be4
commit
979c925234
|
@ -756,9 +756,11 @@ class CursedMenu(object):
|
|||
self.screen.addstr(16, 2, "{}'s garden is locked, but you can see in...".format(guest_garden))
|
||||
else:
|
||||
self.screen.addstr(16, 2, "i can't seem to find directions to {}...".format(guest_garden))
|
||||
try:
|
||||
self.screen.getch()
|
||||
self.clear_info_pane()
|
||||
self.draw_plant_ascii(self.plant)
|
||||
finally:
|
||||
self.visited_plant = None
|
||||
|
||||
def water_on_visit(self, guest_visitor_file):
|
||||
|
|
Loading…
Reference in New Issue