From: Armaan Bhojwani Date: Sun, 14 Feb 2021 18:17:50 +0000 (-0500) Subject: Remove CursesError exception X-Git-Tag: v0.7.0^0 X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=commitdiff_plain Remove CursesError exception --- 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():