Skip to content

Commit

Permalink
fixed issue with response construction
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshmk committed Jul 20, 2020
1 parent 274df48 commit e5191bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sklearn/fmlearn/utils/response_construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def construct_response(data, meta_data=False):
if data == {} or data == []:
print('Empty Response from Server!')
return response
if data['response'] != "":
if 'response' in data:
print(data['response'])
return
if type(data) == list:
Expand Down

0 comments on commit e5191bb

Please sign in to comment.