#27105: Misleading error in ContentTypes get_for_model
--------------------------------------+--------------------
     Reporter:  andybak               |      Owner:  nobody
         Type:  Uncategorized         |     Status:  new
    Component:  contrib.contenttypes  |    Version:  1.10
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 This (line 75):

     except (OperationalError, ProgrammingError, IntegrityError):

 is gives the following message:

                 "Error creating new content types. Please make sure
 contenttypes "
                 "is migrated before trying to migrate apps individually."

 However - it's catching a much broader set of issues. I was baffled for a
 while - my actual issue was that MySQL was unstable: "Lost connection to
 MySQL server at 'reading initial communication packet" but I had to
 disable the exception handling to figure that out.

 We should probably examine the error inside the except block and narrow
 down the range of cases that result in this message.

--
Ticket URL: <https://code.djangoproject.com/ticket/27105>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.fb2e65ea2010f84a53fe14b6ab22a90a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to