From 5850af40863e9284c7363dc2e20be9d94fc8d910 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Oct 08 2019 05:42:06 +0000 Subject: frontend: api_2: ignore validation problems mm_serialize_one This fixes problems caused by f524dd3744c0a86bcbb98a7d13411bfb4a9efa21. Resolves: rhbz#1758559 Merges: #1047 --- diff --git a/frontend/coprs_frontend/coprs/rest_api/util.py b/frontend/coprs_frontend/coprs/rest_api/util.py index 3b2f1a4..f0b3a32 100644 --- a/frontend/coprs_frontend/coprs/rest_api/util.py +++ b/frontend/coprs_frontend/coprs/rest_api/util.py @@ -57,7 +57,10 @@ def mm_serialize_one(schema, obj): try: return schema().dump(obj) except ValidationError as err: - raise MalformedRequest("Failed to parse request") + # This isn't correct behavior, but we used to ignore ValidationError + # before (e.g rhbz#1758559) and there's no desire to fix APIv2 when + # there's APIv3. + pass class MyArg(Argument):