|
@@ -94,11 +94,11 @@ class TaskView(APIView):
|
|
|
executor, action, method = get_log(request)
|
|
|
gen_log(action, "测试任务", task.title, method, executor)
|
|
|
company_name = ''
|
|
|
- # try:
|
|
|
- company = Company.objects.get(id=task.company_id)
|
|
|
- company_name = company.name
|
|
|
- # except:
|
|
|
- # pass
|
|
|
+ try:
|
|
|
+ company = Company.objects.get(id=task.company_id)
|
|
|
+ company_name = company.name
|
|
|
+ except:
|
|
|
+ pass
|
|
|
|
|
|
return Response({
|
|
|
'software_id': task.plan.software.id,
|