|
|
@@ -101,11 +101,15 @@ def clerk_sale_submit_api(request):
|
101
|
101
|
model = ModelInfo.objects.get(pk=modelID)
|
102
|
102
|
except ModelInfo.DoesNotExist:
|
103
|
103
|
return response(ProductModelStatusCode.MODEL_NOT_FOUND)
|
|
104
|
+ except ValueError:
|
|
105
|
+ return response(ProductModelStatusCode.MODEL_NOT_FOUND)
|
104
|
106
|
|
105
|
107
|
try:
|
106
|
108
|
distributor = DistributorInfo.objects.get(pk=distributorID)
|
107
|
109
|
except DistributorInfo.DoesNotExist:
|
108
|
110
|
return response(ProductDistributorStatusCode.DISTRIBUTOR_NOT_FOUND)
|
|
111
|
+ except ValueError:
|
|
112
|
+ return response(ProductDistributorStatusCode.DISTRIBUTOR_NOT_FOUND)
|
109
|
113
|
|
110
|
114
|
integral = model.integral
|
111
|
115
|
|