diff --git a/ishell/console.py b/ishell/console.py index ac6ffe7..bff1d42 100644 --- a/ishell/console.py +++ b/ishell/console.py @@ -100,7 +100,8 @@ def loop(self): break else: self.walk_and_run(input_) - except KeyboardInterrupt: + except (KeyboardInterrupt, EOFError): + print "exit" break except Exception: