Skip to content

Commit 6a49fae

Browse files
author
Felix Finkbeiner
committed
Explicitly cast unicode to string for uuid return values
1 parent a6c437c commit 6a49fae

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

ci/integration_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import os
32
import time
43
from queries import *

weaviate/batch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import unicode_literals
12
import validators
23
import copy
34

weaviate/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def create_thing(self, thing, class_name, uuid=None, vector_weights=None):
9595
sys.exc_info()[2])
9696

9797
if response.status_code == 200:
98-
return response.json()["id"]
98+
return str(response.json()["id"])
9999

100100
else:
101101
thing_does_already_exist = False

0 commit comments

Comments
 (0)