Loading cccli/printer.py +5 −0 Original line number Diff line number Diff line Loading @@ -146,8 +146,13 @@ class Printer(object): raise cliError("Unable to ask question in non-interactive mode") h = list(self.history) self.history.clear() r = "" try: r = self.getline(prompt) except EOFError: pass except KeyboardInterrupt: pass finally: self.history.load(h) return r Loading Loading
cccli/printer.py +5 −0 Original line number Diff line number Diff line Loading @@ -146,8 +146,13 @@ class Printer(object): raise cliError("Unable to ask question in non-interactive mode") h = list(self.history) self.history.clear() r = "" try: r = self.getline(prompt) except EOFError: pass except KeyboardInterrupt: pass finally: self.history.load(h) return r Loading