From 267ae16c5db88a2766c866fe218de9c94458bcc4 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 17 Feb 2020 22:56:39 -0800 Subject: [PATCH] Add a parent PipeableException class. --- voussoirkit/pipeable.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/voussoirkit/pipeable.py b/voussoirkit/pipeable.py index 1969aab..e88f4f7 100644 --- a/voussoirkit/pipeable.py +++ b/voussoirkit/pipeable.py @@ -10,9 +10,11 @@ EOF = '\x1a' IN_PIPE = not sys.stdin.isatty() OUT_PIPE = not sys.stdout.isatty() -class NoArguments(Exception): +class PipeableException(Exception): pass +class NoArguments(PipeableException): + pass def argv(index): try: return sys.argv[index]