diff --git a/dyn/mm/errors.py b/dyn/mm/errors.py index 7491992..edd2510 100644 --- a/dyn/mm/errors.py +++ b/dyn/mm/errors.py @@ -9,7 +9,7 @@ __author__ = 'jnappi' -class EmailError(BaseException): +class EmailError(Exception): """Base Dynect Error class""" def __init__(self, reason): """Create the error message based on the response in the raw JSON diff --git a/dyn/tm/errors.py b/dyn/tm/errors.py index fb8406d..718f740 100644 --- a/dyn/tm/errors.py +++ b/dyn/tm/errors.py @@ -10,7 +10,7 @@ __author__ = 'jnappi' -class DynectError(BaseException): +class DynectError(Exception): """Base Dynect Error class""" def __init__(self, json_response_messages, api_type=None): """Create the error message based on the response in the raw JSON