diff --git a/cozy/model/settings.py b/cozy/model/settings.py index ff23a297..1739530e 100644 --- a/cozy/model/settings.py +++ b/cozy/model/settings.py @@ -51,7 +51,7 @@ def default_location(self) -> Storage | NoReturn: for location in self.storage_locations: if location.default: return location - assert False, "this should never happen" + raise AssertionError("This should never happen") @property def storage_locations(self) -> list[Storage]: