diff --git a/docs/howto/custom-lookups.txt b/docs/howto/custom-lookups.txt index 0f34534182..22b61fb2a7 100644 --- a/docs/howto/custom-lookups.txt +++ b/docs/howto/custom-lookups.txt @@ -296,7 +296,7 @@ would override ``get_lookup`` with something like:: dimension = int(lookup_name[1:]) except ValueError: pass - finally: + else: return get_coordinate_lookup(dimension) return super(CoordinatesField, self).get_lookup(lookup_name)