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.
debian
Niels Thykier 13 years ago
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…
Cancel
Save