Skip to content

Commit 0cf655d

Browse files
committed
add error messages when saving/deleting features fails
Saving and deleting of features is now stopped when any failure occurs. Functions return QgsFeature or None, or bool indicating if operation was succesfull. Database throws still an error message also, but should throw only one.
1 parent 81c9dd9 commit 0cf655d

File tree

2 files changed

+137
-73
lines changed

2 files changed

+137
-73
lines changed

arho_feature_template/core/models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ def from_config_data(cls, data: dict) -> PlanFeature:
562562
# TODO: Implement
563563
return cls(**data)
564564

565-
def describe(self) -> str:
566-
return f"{self.name} " if self.name else ""
565+
def __str__(self):
566+
return self.name if self.name else ""
567567

568568

569569
@dataclass

0 commit comments

Comments
 (0)