diff --git a/src/taipy/core/_version/_version_sql_repository.py b/src/taipy/core/_version/_version_sql_repository.py index bff04b42..374b4e3e 100644 --- a/src/taipy/core/_version/_version_sql_repository.py +++ b/src/taipy/core/_version/_version_sql_repository.py @@ -32,7 +32,7 @@ def _set_latest_version(self, version_number): def _get_latest_version(self): if latest := self.db.query(self.model_type).filter_by(is_latest=True).first(): return latest.id - return "" + raise ModelNotFound(self.model_type, "") def _set_development_version(self, version_number): if old_development := self.db.query(self.model_type).filter_by(is_development=True).first():