#34676: Add DistanceUnitDoesNotExist exception to contrib.gis.measure -------------------------------------+------------------------------------- Reporter: Andrew Northall | Owner: Andrew Type: | Northall Cleanup/optimization | Status: assigned Component: GIS | Version: dev Severity: Normal | Resolution: Keywords: | Triage Stage: | Unreviewed Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Andrew Northall):
* cc: Andrew Northall (added) * owner: nobody => Andrew Northall Old description: > 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. New description: 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. https://github.com/django/django/pull/17006 -- -- Ticket URL: <https://code.djangoproject.com/ticket/34676#comment:1> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/01070188ed018965-726e0b7f-a277-4ab3-bdb3-84e19d288bef-000000%40eu-central-1.amazonses.com.