mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-10 02:41:10 +00:00
Do not crash if writing histfile fails with --hint-tester
It does not affect the result and only means the user does not have any readline-history.
This commit is contained in:
parent
a687b00e18
commit
dda7031ea3
@ -2475,8 +2475,10 @@ class Britney:
|
||||
self.printuninstchange()
|
||||
except KeyboardInterrupt:
|
||||
continue
|
||||
|
||||
readline.write_history_file(histfile)
|
||||
try:
|
||||
readline.write_history_file(histfile)
|
||||
except IOError, e:
|
||||
self.__log("Could not write %s: %s" % (histfile, e), type="W")
|
||||
|
||||
def do_hint(self, type, who, pkgvers):
|
||||
"""Process hints
|
||||
|
Loading…
x
Reference in New Issue
Block a user