#34676: Add DistanceUnitDoesNotExist exception to contrib.gis.measure
------------------------------------------------+--------------------------
Reporter: Andrew Northall | Owner: nobody
Type: Cleanup/optimization | Status: assigned
Component: GIS | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+--------------------------
I am making use of the `Distance` class in `contrib.gis.measure` in my
project and it is annoying to have to constantly catch `Exception` when
checking if a particular unit exists. It would be better to have a
specific exception for this case.
--
Ticket URL: <https://code.djangoproject.com/ticket/34676>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070188ecfd4d9e-7094ac32-8d93-4bb6-a46b-89bf18e93747-000000%40eu-central-1.amazonses.com.