mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-17 21:41:30 +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()
|
self.printuninstchange()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
continue
|
continue
|
||||||
|
try:
|
||||||
readline.write_history_file(histfile)
|
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):
|
def do_hint(self, type, who, pkgvers):
|
||||||
"""Process hints
|
"""Process hints
|
||||||
|
Loading…
x
Reference in New Issue
Block a user