Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 08884cb370 | |||
| 9b5defec6d |
@@ -217,7 +217,11 @@ class AbstractModelAPISerializer:
|
|||||||
conflict_geometries = geometry.get_conflict_geometries()
|
conflict_geometries = geometry.get_conflict_geometries()
|
||||||
for geom in conflict_geometries:
|
for geom in conflict_geometries:
|
||||||
try:
|
try:
|
||||||
data = geom.get_data_objects(["identifier", "id"])[0]
|
data = geom.get_data_objects(["identifier", "id"])
|
||||||
|
if len(data) == 0:
|
||||||
|
# expected behaviour in case of deleted data object
|
||||||
|
continue
|
||||||
|
data = data[0]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise AssertionError(f"Geometry {geom.id} is not attached to any entries. Contact an admin!")
|
raise AssertionError(f"Geometry {geom.id} is not attached to any entries. Contact an admin!")
|
||||||
ids.append(
|
ids.append(
|
||||||
|
|||||||
Reference in New Issue
Block a user