#32978: Improve an error message on loaddata/dumpdata when PyYAML is not
installed.
-------------------------------------+-------------------------------------
Reporter: Brad | Owner: Bal
Type: | Krishna Jha
Cleanup/optimization | Status: assigned
Component: Core | Version: 3.2
(Serialization) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
serializers,yaml,dumpdata,loaddata |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Brad):
Having read the background from Ticket 12756, the comment from
core/serializers/pyyaml.py about the checking being done in `__init__.py`
makes more sense now. The check that's referring to is here:
https://github.com/django/django/blob/main/django/core/serializers/__init__.py#L70
So again, the import error is caught correctly, but in this ticket I'm
proposing adding a friendlier message in the special case of yaml/PyYAML.
--
Ticket URL: <https://code.djangoproject.com/ticket/32978#comment:8>
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/070.acd6c110d48054d24df52d0347076937%40djangoproject.com.