#12605: ImproperlyConfigured improperly imported in Spatialite base wrapper
--------------------------+-------------------------------------------------
 Reporter:  tmcw          |       Owner:  nobody    
   Status:  new           |   Milestone:            
Component:  Contrib apps  |     Version:  SVN       
 Keywords:                |       Stage:  Unreviewed
Has_patch:  0             |  
--------------------------+-------------------------------------------------
 The Spatialite-specific code in spatialite/base.py necessitated the use of
 this exception, so imported it for the entire module, but the existing
 code had a local import, so in many cases, ImproperlyConfigured is treated
 as an undefined local variable, this producing the error message

 {{{
 django.core.exceptions.ImproperlyConfigured: Cannot determine the
 SpatiaLite version for the "mapdemo.db" database (error was "local
 variable 'ImproperlyConfigured' referenced before assignment").  Was the
 SpatiaLite initialization SQL loaded on this database?
 }}}

 This patch removes the redundant import, allowing the correct exception to
 be reported. Also the code in operations.py might want to be tighter in
 catching all exceptions as problems identifying the Spatialite version.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12605>
Django <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