Opened 17 months ago

Last modified 17 months ago

#34676 closed Cleanup/optimization

Add DistanceUnitDoesNotExist exception to contrib.gis.measure — at Version 1

Reported by: Andrew Northall Owned by: Andrew Northall
Component: GIS Version: dev
Severity: Normal Keywords:
Cc: Andrew Northall Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Andrew Northall)

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

Change History (1)

comment:1 by Andrew Northall, 17 months ago

Cc: Andrew Northall added
Description: modified (diff)
Owner: changed from nobody to Andrew Northall
Note: See TracTickets for help on using tickets.
Back to Top