From 86612c765414fc726468965e79b888998efb31a1 Mon Sep 17 00:00:00 2001 From: Zajcev Evgeny Date: Tue, 31 May 2016 21:46:43 +0300 Subject: [PATCH] + fix for TypeError: cannot concatenate 'str' and 'Response' objects --- tarantool/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tarantool/schema.py b/tarantool/schema.py index 911dbff1..f7237a48 100644 --- a/tarantool/schema.py +++ b/tarantool/schema.py @@ -79,7 +79,7 @@ def get_space(self, space): if space_row is None: space_row = self.con.select(const.SPACE_SPACE, space, index=_index) if len(space_row) > 1: - raise SchemaError('Some strange output from server: \n' + space_row) + raise SchemaError('Some strange output from server: \n' + str(space_row)) elif len(space_row) == 0 or not len(space_row[0]): temp_name = ('name' if isinstance(space, six.string_types) else 'id') raise SchemaError( @@ -109,7 +109,7 @@ def get_index(self, space, index): index=_index) if len(index_row) > 1: - raise SchemaError('Some strange output from server: \n' + index_row) + raise SchemaError('Some strange output from server: \n' + str(index_row)) elif len(index_row) == 0 or not len(index_row[0]): temp_name = ('name' if isinstance(index, six.string_types) else 'id') raise SchemaError(