mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-24 03:41:12 +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
6ecb711860
commit
575adfc307
@ -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