at least do not traceback if history undo doesn't work.

Related: RhBug:878348