#32978: Provide more informative error message on loaddata/dumpdata --format
yaml
when PyYAML not installed
-------------------------------------+-------------------------------------
Reporter: Brad | Owner: nobody
Type: | Status: new
Cleanup/optimization |
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
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* component: Core (Management commands) => Core (Serialization)
* easy: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Agreed, we can raise an `ImproperlyConfigured` error, e.g.
{{{
try:
import yaml
except ImportError as e:
raise ImproperlyConfigured(
'Error loading yaml module. Did you install PyYAML?'
) from e
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32978#comment:3>
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.9724118e811b8548c7863a56494b8d29%40djangoproject.com.