Archived
feat: implement Duunitori job posting parser and API endpoint
This commit is contained in:
@@ -7,3 +7,13 @@ class NotImplementedException(HTTPException):
|
||||
status_code=status.HTTP_501_NOT_IMPLEMENTED,
|
||||
detail="Not implemented yet",
|
||||
)
|
||||
|
||||
|
||||
class FetchException(HTTPException):
|
||||
def __init__(
|
||||
self, url: str = "", status_code: int = status.HTTP_500_INTERNAL_SERVER_ERROR
|
||||
):
|
||||
super().__init__(
|
||||
status_code=status_code,
|
||||
detail=f"Failed to fetch job postings from {url} with status code {status_code}",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user