catch exceptions in conversion to vertical format