From c8d7e3215d264fa1febb8b384b8579dcf02eaa18 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 28 Sep 2022 23:38:14 +0800 Subject: [PATCH] fixed EOFERROR --- prompt.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prompt.py b/prompt.py index 3598c62..3c0f221 100644 --- a/prompt.py +++ b/prompt.py @@ -334,7 +334,10 @@ def prompt(running = lambda:True, next = lambda:input('> '), state = None): state.init() while state.get_ready(): time.sleep(.00001) - og_q : str = next() + try: + og_q : str = next() + except EOFError: + continue q = og_q.lower().strip() if False and q == 'exec': # generate build and run (AQuery Engine) state.cfg.backend_type = Backend_Type.BACKEND_AQuery.value