diff options
-rw-r--r-- | ipalib/cli.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index 62528034..ab7e3620 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -277,7 +277,10 @@ class CLI(object): def run_cmd(self, cmd, argv): kw = self.parse(cmd, argv) - self.run_interactive(cmd, kw) + try: + self.run_interactive(cmd, kw) + except KeyboardInterrupt: + return def run_interactive(self, cmd, kw): for param in cmd.params(): |