mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
Gracefully handle keyboard interrupts (^C)
This commit is contained in:
parent
475265ed37
commit
bc5edcf893
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user