Skip to content

Commit 02188ef

Browse files
Fix response obj string repr in case of no data
1 parent e98c377 commit 02188ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tarantool/response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def __str__(self):
238238
}
239239
}, sort_keys = True, indent = 4)
240240
output = []
241-
for tpl in self._data:
241+
for tpl in self._data or ():
242242
output.extend(("- ", repr(tpl), "\n"))
243243
if len(output) > 0:
244244
output.pop()

0 commit comments

Comments
 (0)