diff --git a/stats-backend/api2/views.py b/stats-backend/api2/views.py index 92f3fee..d8f3716 100644 --- a/stats-backend/api2/views.py +++ b/stats-backend/api2/views.py @@ -32,12 +32,9 @@ def list_ec2_instances_comparison(request): - try: - ec2_instances = EC2Instance.objects.all() - results = [_compare_ec2_and_golem(ec2) for ec2 in ec2_instances] - return JsonResponse({"comparison_overview": results}, safe=False) - except Exception as e: - return JsonResponse({"error": str(e)}, status=500) + ec2_instances = EC2Instance.objects.all() + results = [_compare_ec2_and_golem(ec2) for ec2 in ec2_instances] + return JsonResponse({"comparison_overview": results}, safe=False) def _compare_ec2_and_golem(ec2):