Skip to content

Commit

Permalink
✏CHANGE: Add back a small amount of exception handling to curses inte…
Browse files Browse the repository at this point in the history
…rpreter
  • Loading branch information
MaddyGuthridge committed Aug 31, 2021
1 parent 81ed105 commit 156e923
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eq_curses/curses_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

from lib import consts
from lib import Expression
from lib.eq_except import EqExternalException
from .output_container import OutputContainer
from . import display_exp, colours

Expand Down Expand Up @@ -222,9 +221,10 @@ def equator_curses(stdscr: 'curses._CursesWindow') -> int:
continue
except EOFError:
return 0
#except Exception as e:
# stdscr.addstr(4, 0, f"{type(e)}: {e}")
# continue
except Exception as e:
stdscr.addstr(4, 0, f"{type(e)}: {e}")
raise e
continue

def curses_main():
try:
Expand Down

0 comments on commit 156e923

Please sign in to comment.