Skip to content

Commit

Permalink
fix(EXCEPTIONS): inherit from proper class
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Jun 17, 2022
1 parent 4e5b9b7 commit 6bcacf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mac_maker/utilities/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .. import config


class InvalidGithubRepository(BaseException):
class InvalidGithubRepository(Exception):
"""Raised when a Github repository URL cannot be parsed."""


Expand Down
2 changes: 1 addition & 1 deletion mac_maker/utilities/validation/precheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TypePrecheckVariableDefinition(TypedDict):
description: str


class PrecheckConfigValidationException(BaseException):
class PrecheckConfigValidationException(Exception):
"""Raised when reading an invalid Precheck environment configuration file."""


Expand Down
2 changes: 1 addition & 1 deletion mac_maker/utilities/validation/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TypeSpecFileData(TypedDict):
spec_file_location: Union[Path, str]


class SpecFileValidationException(BaseException):
class SpecFileValidationException(Exception):
"""Raised when reading an invalid Job Spec file."""


Expand Down

0 comments on commit 6bcacf4

Please sign in to comment.