We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fde3f8c commit b2e3988Copy full SHA for b2e3988
tarantool/schema.py
@@ -92,7 +92,7 @@ def get_index(self, space, index):
92
if len(array) > 1:
93
raise SchemaError('Some strange output from server: \n'+array)
94
elif len(array) == 0 or not len(array[0]):
95
- temp_name = ('name' if isinstance(space, basestring) else 'id')
+ temp_name = ('name' if isinstance(index, basestring) else 'id')
96
raise SchemaError('There\'s no index with {2} \'{0}\' '
97
'in space \'{1}\''.format(index, space.name, temp_name))
98
array = array[0]
0 commit comments