Add exception handling for pretty_print_cols().