#5531: properly report when the mysqldb python package doesn't meet the version
requirements
-------------------------+--------------------------------------------------
   Reporter:  anonymous  |                Owner:  nobody           
     Status:  reopened   |            Component:  Database wrapper 
    Version:  SVN        |           Resolution:                   
   Keywords:  mysql      |                Stage:  Ready for checkin
  Has_patch:  0          |           Needs_docs:  0                
Needs_tests:  0          |   Needs_better_patch:  0                
-------------------------+--------------------------------------------------
Comment (by anonymous):

 Replying to [comment:2 ramiro]:
 {{{
  -    raise ImportError("MySQLdb-1.2.1p2 or newer is required; you have
 %s" % Database.__version__)
  +    from django.core.exceptions import ImproperlyConfigured
  +    raise ImproperlyConfigured("MySQLdb-1.2.1p2 or newer is required;
 you have %s" % Database.__version__)
 }}}

 Hm. Use ImproperlyConfigured should be a good solution, i think.

 (Btw. Attachment t5531.diff not found)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5531#comment:6>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to