From d336decbeaca3ff299983b65dfb2e902907978d3 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 9 Aug 2018 14:41:03 +0800 Subject: [PATCH] bugfix: repalce BaseException with Exception --- httprunner/exceptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):