shu/fix task url type (#999)

This commit is contained in:
Shuchang Zheng
2024-10-17 23:47:59 -07:00
committed by GitHub
parent dad53e1f6a
commit f69016088b
4 changed files with 43 additions and 7 deletions

View File

@@ -495,3 +495,10 @@ class IllegitComplete(SkyvernException):
class CachedActionPlanError(SkyvernException):
def __init__(self, message: str) -> None:
super().__init__(message)
class InvalidUrl(SkyvernHTTPException):
def __init__(self, url: str) -> None:
super().__init__(
f"Invalid URL: {url}. Skyvern supports HTTP and HTTPS urls.", status_code=status.HTTP_400_BAD_REQUEST
)