X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/903dba50d3acc98129b86fb8c6a92997ec086114..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)