X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/a6c79626b2d248d0484b5242c0a2051da8ec84d1..19a90b1cacb47a7bbb42e4ac7c7746885f92ac38:/cli_frontend.py diff --git a/cli_frontend.py b/cli_frontend.py index 5e9d400..15d081c 100644 --- a/cli_frontend.py +++ b/cli_frontend.py @@ -26,6 +26,8 @@ class CLIFrontend(QuestionFrontend): print(message, file=sys.stderr) def userChoose (self, title, choices, returns, fallback): + if not sys.stdin.isatty(): + raise Exception("Choosing the setup interactively is not possible, due to lack of a TTY") while True: # print question print(title)