diff options
author | Armaan Bhojwani <me@armaanb.net> | 2021-02-14 13:17:50 -0500 |
---|---|---|
committer | Armaan Bhojwani <me@armaanb.net> | 2021-02-14 13:17:50 -0500 |
commit | a32f80e459c2fa88cfde61fd80d1a8543cc51e8b (patch) | |
tree | cd7421873fd709930a7a011e8b4f72b0d6acb1d7 | |
parent | 967980c67e952501e2affd7f29c8a8bc2e388abb (diff) | |
download | lightcards-a32f80e459c2fa88cfde61fd80d1a8543cc51e8b.tar.gz |
-rw-r--r-- | lightcards/display.py | 7 | ||||
-rw-r--r-- | lightcards/runner.py | 4 |
2 files changed, 2 insertions, 9 deletions
diff --git a/lightcards/display.py b/lightcards/display.py index 87ab9ae..5ecb14c 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -20,13 +20,6 @@ def panel_create(x, y): return (win, panel) -class CursesError(BaseException): - def __init__(self, message="lightcards: Curses error!"): - self.message = message - print(self.message) - sys.exit(3) - - class Quit: def __init__(self, outer, mlines=5, mcols=20): self.outer = outer diff --git a/lightcards/runner.py b/lightcards/runner.py index 0bd5600..40b5b15 100644 --- a/lightcards/runner.py +++ b/lightcards/runner.py @@ -8,7 +8,7 @@ from random import shuffle import sys from . import parse, progress, config -from .display import Display, CursesError +from .display import Display from .deck import Status @@ -108,7 +108,7 @@ def show(args, stack, headers, conf): try: curses.wrapper(win.run) except curses.error as e: - raise CursesError() from e + raise e def get_orig(): |