Fixup for 30994a91: move format_exception to exceptions module