From 54a65ea705872554a7283d3d0f0a9259b8fe3bfe Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Tue, 16 Feb 2016 01:55:58 +0000 Subject: Finally builds and installs properly on Ubuntu again; no serious runtime testing yet. svn path=/branches/tk705/; revision=6262 --- rpki/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rpki/cli.py') diff --git a/rpki/cli.py b/rpki/cli.py index 0fdccf8b..2f007101 100644 --- a/rpki/cli.py +++ b/rpki/cli.py @@ -173,7 +173,10 @@ class Cmd(cmd.Cmd): self.cmdloop() finally: if self.histfile is not None and readline.get_current_history_length(): - readline.write_history_file(self.histfile) + try: + readline.write_history_file(self.histfile) + except IOError: + pass readline.set_completer_delims(old_completer_delims) else: -- cgit v1.2.3