#19159: loaddata reports DeserializationError instead of MemoryError
--------------------------------------+------------------------------------
Reporter: django@… | Owner: nobody
Type: Bug | Status: closed
Component: Core (Serialization) | Version: dev
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => invalid
Comment:
`MemoryError` is not wrapped anymore because we no longer use `StringIO`
or `BytesIO`, and `MemoryError` is raised by `.read()` (see
7d0f8831922535502569a5dda989dde339b4e491):
{{{
File "django/django/core/serializers/json.py", line 65, in Deserializer
stream_or_string = stream_or_string.read()
MemoryError: Problem installing fixture 'mydump.json'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/19159#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/079.0aa461defc68fb14e3b888f8581d78b7%40djangoproject.com.