Skip to content

Commit

Permalink
fix: handle basics errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel-Dijoux committed Jan 23, 2024
1 parent fa6d534 commit 56b7d84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/business_logic/formation/get_formation_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class FormationDetail:
type: str
jobs: Optional[list[Job]]
continuation_studies: Optional[ContinuationOfStudies]
updated_at: date
updated_at: Optional[date]


def _filter_by_link(formations: list[dict[str, Any]], for_id: str) -> dict[str, Any]:
Expand Down Expand Up @@ -96,5 +96,5 @@ def get_formation_by_id(for_id: str) -> FormationDetail:
return _process_formation(for_id)
except Exception as e:
raise ProcessFormationException(
"Error during formation processing : " + e
"Error during formation processing : " + str(e)
) from e
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ def parse_html(self) -> ParcourSupExpectations:
title = self._extract_title()
expectations = self._extract_expectations()

return ParcourSupExpectations(title, expectations)
return ParcourSupExpectations(title=title, expectations=expectations)

0 comments on commit 56b7d84

Please sign in to comment.