538a32457740b46992ebc648f0e2aa54b7a4009a,external_api/api.py,,transfer_entities,#Any#,51
Before Change
status, error = datastore_object.transfer_entities(entity_list=entity_list)
result = {"status": status, "error": error}
if not status:
HttpResponse(json.dumps({"data": result}), content_type="application/json", status=500)
return HttpResponse(json.dumps({"data": result}), content_type="application/json", status=200)
After Change
PointIndexToAliasException, FetchIndexForAliasException, DeleteIndexFromAliasException,
AliasForTransferException, IndexForTransferException) as error_message:
response["error"] = error_message
return HttpResponse(json.dumps(response), content_type="application/json", status=500)
except BaseException:
response["error"] = "Base exception occured"
return HttpResponse(json.dumps(response), content_type="application/json", status=500)
return HttpResponse(json.dumps(response), content_type="application/json", status=200)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: hellohaptik/chatbot_ner
Commit Name: 538a32457740b46992ebc648f0e2aa54b7a4009a
Time: 2018-08-20
Author: pratik.jayarao@haptik.co
File Name: external_api/api.py
Class Name:
Method Name: transfer_entities
Project Name: hellohaptik/chatbot_ner
Commit Name: 538a32457740b46992ebc648f0e2aa54b7a4009a
Time: 2018-08-20
Author: pratik.jayarao@haptik.co
File Name: external_api/api.py
Class Name:
Method Name: transfer_entities
Project Name: hellohaptik/chatbot_ner
Commit Name: ee67dea7a8fc309a3cd1187a2a9290e9ca36a327
Time: 2020-09-18
Author: ankur09011@gmail.com
File Name: ner_v2/api.py
Class Name:
Method Name: text
Project Name: hellohaptik/chatbot_ner
Commit Name: f11e942dbe2069e1ac09c8d8d981179d24326c70
Time: 2018-08-19
Author: pratik.jayarao@haptik.co
File Name: external_api/api.py
Class Name:
Method Name: transfer_entities