1
0
mirror of https://github.com/django/django.git synced 2025-04-22 00:04:43 +00:00

[1.11.x] Fixed #28525 -- Documented GDAL and GeoIP exceptions.

Backport of 11f4c52ec74ea5244bc5988f37cbfdce2586b642 from master
This commit is contained in:
Nick Pope 2017-05-18 14:12:28 +01:00 committed by Tim Graham
parent b9436d1ba8
commit 1739ef7855
2 changed files with 20 additions and 0 deletions

View File

@ -1683,3 +1683,15 @@ Settings
A string specifying the location of the GDAL library. Typically,
this setting is only used if the GDAL library is in a non-standard
location (e.g., ``/home/john/lib/libgdal.so``).
Exceptions
==========
.. exception:: GDALException
The base GDAL exception, indicating a GDAL-related error.
.. exception:: SRSException
An exception raised when an error occurs when constructing or using a
spatial reference system object.

View File

@ -167,5 +167,13 @@ The basename to use for the GeoIP country data file. Defaults to
The basename to use for the GeoIP city data file. Defaults to
``'GeoLite2-City.mmdb'``.
Exceptions
==========
.. exception:: GeoIP2Exception
The exception raised when an error occurs in a call to the underlying
``geoip2`` library.
.. rubric:: Footnotes
.. [#] GeoIP(R) is a registered trademark of MaxMind, Inc.