diff --git a/mydata_benchmarks/views/benchmark_api.py b/mydata_benchmarks/views/benchmark_api.py index 19fa3c8..c2844c5 100644 --- a/mydata_benchmarks/views/benchmark_api.py +++ b/mydata_benchmarks/views/benchmark_api.py @@ -34,6 +34,8 @@ def benchmark_submit_view(request): # TODO(Sybren): give feedback with validation errors to the caller. return JsonResponse({'message': 'The submitted data is not valid.'}, status=422) + # Check this before forwarding the request to Open Data, so that an + # out-of-date warning in the log is logged before other potential errors. client_version, client_outdated = _is_client_version_outdated(request, benchmark_data) url = opendata.url('api/benchmarks/')