feat(ssh_tunnel): SQLAlchemy Form UI (#22513)

Co-authored-by: hughhhh <hughmil3s@gmail.com>
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
Antonio Rivero Martinez
2023-01-11 16:29:52 -03:00
committed by GitHub
parent 0908fd291b
commit 539936522f
16 changed files with 701 additions and 6 deletions

View File

@@ -42,7 +42,8 @@ class UpdateSSHTunnelCommand(BaseCommand):
def run(self) -> Model:
self.validate()
try:
tunnel = SSHTunnelDAO.update(self._model, self._properties)
if self._model is not None: # So we dont get incompatible types error
tunnel = SSHTunnelDAO.update(self._model, self._properties)
except DAOUpdateFailedError as ex:
raise SSHTunnelUpdateFailedError() from ex
return tunnel