parent
b6e52f6b4c
commit
efd5b6bb98
@ -97,16 +97,3 @@ class InterventionQualityChecker(AbstractQualityChecker):
|
||||
self.messages.append(
|
||||
_("No compensation of any type found (Compensation, Payment, Deduction)")
|
||||
)
|
||||
|
||||
def _check_geometry(self):
|
||||
""" Checks on the geometry
|
||||
|
||||
Returns:
|
||||
|
||||
"""
|
||||
try:
|
||||
geometry_obj = self.obj.geometry
|
||||
if geometry_obj.geom.empty:
|
||||
self._add_missing_attr_name(_("Geometry"))
|
||||
except AttributeError:
|
||||
self._add_missing_attr_name(_("Geometry"))
|
||||
|
@ -32,3 +32,15 @@ class AbstractQualityChecker:
|
||||
missing = _('missing')
|
||||
self.messages.append(f"{attr_name} {missing}")
|
||||
|
||||
def _check_geometry(self):
|
||||
""" Checks on the geometry
|
||||
|
||||
Returns:
|
||||
|
||||
"""
|
||||
try:
|
||||
geometry_obj = self.obj.geometry
|
||||
if geometry_obj.geom.empty:
|
||||
self._add_missing_attr_name(_("Geometry"))
|
||||
except AttributeError:
|
||||
self._add_missing_attr_name(_("Geometry"))
|
||||
|
Loading…
Reference in New Issue
Block a user