john-bodley commented on code in PR #24969: URL: https://github.com/apache/superset/pull/24969#discussion_r1488797333
########## superset/commands/database/update.py: ########## @@ -52,10 +52,10 @@ def __init__(self, model_id: int, data: dict[str, Any]): self._model_id = model_id self._model: Optional[Database] = None + @transaction(on_error=partial(on_error, reraises=DatabaseUpdateFailedError)) def run(self) -> Model: self.validate() - if not self._model: Review Comment: This is handled by the `validate()` function. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org