From 1adbd96ba5b0de15dd63d6d6af81878ffdecc3ce Mon Sep 17 00:00:00 2001 From: lukasbuenger Date: Tue, 17 Sep 2013 09:22:47 +0200 Subject: [PATCH] remove print statement in serializer --- rest_framework/genericrelations.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rest_framework/genericrelations.py b/rest_framework/genericrelations.py index aad6e4e6a..5a20b5296 100644 --- a/rest_framework/genericrelations.py +++ b/rest_framework/genericrelations.py @@ -73,8 +73,7 @@ class GenericRelatedField(serializers.WritableField): serializer.from_native(value) # Collects all serializers that can handle the input data. serializers.append(serializer) - except Exception as e: - print e + except Exception: pass # If no serializer found, raise error. l = len(serializers)