@POST('^/api/v1/dispute_contract')
    @authenticated
    def dispute_contract(self, request):
        try:
            self.mserver.open_dispute(request.args["order_id"][0],
                                      request.args["claim"][0].decode("utf8") if "claim" in request.args else None)
            request.write(json.dumps({"success": True}, indent=4))
            request.finish()
            return server.NOT_DONE_YET
        except Exception, e:
            request.write(json.dumps({"success": False, "reason": e.message}, indent=4))
            request.finish()
            return server.NOT_DONE_YET
dataset/ETHPy150Open OpenBazaar/OpenBazaar-Server/api/restapi.py/OpenBazaarAPI.dispute_contract/original