migrate aiohttp helper from cloud to open source (#572)

This commit is contained in:
Kerem Yilmaz
2024-07-09 17:45:51 -07:00
committed by GitHub
parent 030145c585
commit 2d9e74bffe
2 changed files with 50 additions and 0 deletions

View File

@@ -416,3 +416,8 @@ class FailedToGetCurrentValueOfDropdown(SkyvernException):
super().__init__(
f"Failed to get current value of {dropdowm_type} dropdown. element_id={element_id}, failure_reason={fail_reason}"
)
class HttpException(SkyvernException):
def __init__(self, status_code: int, url: str, msg: str | None = None) -> None:
super().__init__(f"HTTP Exception, status_code={status_code}, url={url}" + (f", msg={msg}" if msg else ""))