Skip to content

Commit 274df48

Browse files
committed
added new response construction mechanism
1 parent d4073fc commit 274df48

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sklearn/fmlearn/utils/response_construction.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ def build_response(obj, meta_data):
77

88
def construct_response(data, meta_data=False):
99
response = None
10+
if data == {} or data == []:
11+
print('Empty Response from Server!')
12+
return response
13+
if data['response'] != "":
14+
print(data['response'])
15+
return
1016
if type(data) == list:
1117
response = []
1218
for obj in data:

0 commit comments

Comments
 (0)