Skip to content

Commit 8c04316

Browse files
committed
Fix error string parsing
1 parent fe15fc5 commit 8c04316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tarantool/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def _unpack_body(self, buff):
178178

179179
# In case of an error unpack the body as an error message
180180
if self._return_code != 0:
181-
self._return_message = unicode(buff.value, "utf8", "replace")
181+
self._return_message = unicode(buff[4:-1], "utf8", "replace")
182182
if self._completion_status == 2:
183183
raise DatabaseError(self._return_code, self._return_message)
184184

0 commit comments

Comments
 (0)