Add a parent PipeableException class.

This commit is contained in:
Ethan Dalool 2020-02-17 22:56:39 -08:00
parent eb3698637f
commit 267ae16c5d

View file

@ -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]