diff --git a/httprunner/exceptions.py b/httprunner/exceptions.py index 7eeeb7c8..fb5113fd 100644 --- a/httprunner/exceptions.py +++ b/httprunner/exceptions.py @@ -6,7 +6,7 @@ from httprunner.compat import JSONDecodeError, FileNotFoundError these exceptions will mark test as failure """ -class MyBaseFailure(BaseException): +class MyBaseFailure(Exception): pass class ValidationFailure(MyBaseFailure): @@ -26,7 +26,7 @@ class TeardownHooksFailure(MyBaseFailure): these exceptions will mark test as error """ -class MyBaseError(BaseException): +class MyBaseError(Exception): pass class FileFormatError(MyBaseError):