Skip to content

Commit b2e3988

Browse files
committed
... tiny fix in error message
1 parent fde3f8c commit b2e3988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tarantool/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def get_index(self, space, index):
9292
if len(array) > 1:
9393
raise SchemaError('Some strange output from server: \n'+array)
9494
elif len(array) == 0 or not len(array[0]):
95-
temp_name = ('name' if isinstance(space, basestring) else 'id')
95+
temp_name = ('name' if isinstance(index, basestring) else 'id')
9696
raise SchemaError('There\'s no index with {2} \'{0}\' '
9797
'in space \'{1}\''.format(index, space.name, temp_name))
9898
array = array[0]

0 commit comments

Comments
 (0)