#28981: django.contrib.gis.geoip2.GeoIP2 issue when GEOIP_PATH exists but there
is
no MaxMind database
-------------------------------------+-------------------------------------
Reporter: Hugo Rodger-Brown | Owner: nobody
Type: Uncategorized | Status: new
Component: GIS | Version: 1.11
Severity: Normal | Resolution:
Keywords: geoip2 maxmind | Triage Stage:
GEOIP_PATH | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Hugo Rodger-Brown):
The cleanest solution to this is to raise a GeoIP2Exception in the
initialisation if a path is specified but no valid database can be found.
The init method already does this for all other variations (invalid path,
invalid database format).
--
Ticket URL: <https://code.djangoproject.com/ticket/28981#comment:2>
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/073.13799d9ea78745065f9907b3027c0fa7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.