Add a parent PipeableException class.
This commit is contained in:
parent
eb3698637f
commit
267ae16c5d
1 changed files with 3 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue