diff --git a/server/lib/django-1.1/django/core/serializers/json.py b/server/lib/django-1.1/django/core/serializers/json.py
index 97e5bc9..df5c304 100644
a
|
b
|
from StringIO import StringIO
|
7 | 7 | |
8 | 8 | from django.core.serializers.python import Serializer as PythonSerializer |
9 | 9 | from django.core.serializers.python import Deserializer as PythonDeserializer |
| 10 | from django.core.serializers import base |
10 | 11 | from django.utils import datetime_safe |
11 | 12 | from django.utils import simplejson |
12 | 13 | |
… |
… |
def Deserializer(stream_or_string, **options):
|
38 | 39 | stream = StringIO(stream_or_string) |
39 | 40 | else: |
40 | 41 | stream = stream_or_string |
41 | | for obj in PythonDeserializer(simplejson.load(stream)): |
42 | | yield obj |
| 42 | try: |
| 43 | for obj in PythonDeserializer(simplejson.load(stream)): |
| 44 | yield obj |
| 45 | except ValueError, e: |
| 46 | # Map to deserializer error |
| 47 | raise base.DeserializationError(e.args) |
43 | 48 | |
44 | 49 | class DjangoJSONEncoder(simplejson.JSONEncoder): |
45 | 50 | """ |