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