Add a parent PipeableException class.

master
Ethan Dalool 2020-02-17 22:56:39 -08:00
parent eb3698637f
commit 267ae16c5d
1 changed files with 3 additions and 1 deletions

View File

@ -10,9 +10,11 @@ EOF = '\x1a'
IN_PIPE = not sys.stdin.isatty() IN_PIPE = not sys.stdin.isatty()
OUT_PIPE = not sys.stdout.isatty() OUT_PIPE = not sys.stdout.isatty()
class NoArguments(Exception): class PipeableException(Exception):
pass pass
class NoArguments(PipeableException):
pass
def argv(index): def argv(index):
try: try:
return sys.argv[index] return sys.argv[index]