From c7a4ae94a0e2c5001b303a59b856f58e5d53f679 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sun, 18 May 2014 17:42:03 -0400 Subject: Removed some unnecessary exception naming; thanks claudep. --- django/core/serializers/python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'django/core/serializers/python.py') diff --git a/django/core/serializers/python.py b/django/core/serializers/python.py index aa21598695..b84a89fdca 100644 --- a/django/core/serializers/python.py +++ b/django/core/serializers/python.py @@ -92,11 +92,11 @@ def Deserializer(object_list, **options): # Look up the model and starting build a dict of data for it. try: Model = _get_model(d["model"]) - except base.DeserializationError as e: + except base.DeserializationError: if ignore: continue else: - raise e + raise data = {} if 'pk' in d: data[Model._meta.pk.attname] = Model._meta.pk.to_python(d.get("pk", None)) -- cgit v1.3