#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:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Brad):

 * has_patch:  0 => 1


Comment:

 PR: https://github.com/django/django/pull/14729


 Old:

 ```sh
 $ ./manage.py dumpdata --format yaml --pks 1 users.User
 CommandError: Unable to serialize database: No module named 'yaml'
 ```

 New:

 ```sh
 $ ./manage.py dumpdata --format yaml --pks 1 users.User
 CommandError: Unable to serialize database: Error loading yaml module. Did
 you install PyYAML?
 ```

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32978#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/070.94be42ae7bef6f453c59ae7a23c80a0e%40djangoproject.com.

Reply via email to