Skip to content

Commit

Permalink
spelling in error message fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitYadav-codes committed May 16, 2024
1 parent 936cd5e commit 55a2849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion akm_tools/validation/custom_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, instances: List[Dict]):
class BaseInstanceOverwiteException(Exception):
def __init__(self, base_instance, extended_instance):
err_msg = (
f"The extended instace :\n{extended_instance}\nis overwriting properties of base instance\n{base_instance}\n"
f"The extended instance :\n{extended_instance}\nis overwriting properties of base instance\n{base_instance}\n"
)
super().__init__(err_msg)
self.message = err_msg
Expand Down
2 changes: 1 addition & 1 deletion tests/test_custom_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_BaseInstanceOverwiteException():
raise BaseInstanceOverwiteException(base_instance, extended_instance)
assert (
str(excinfo.value)
== f"The extended instace :\n{extended_instance}\nis overwriting properties of base instance\n{base_instance}\n"
== f"The extended instance :\n{extended_instance}\nis overwriting properties of base instance\n{base_instance}\n"
)


Expand Down

0 comments on commit 55a2849

Please sign in to comment.