From c1b8af18a602be390c23bc250187abfafc308930 Mon Sep 17 00:00:00 2001 From: Sumit Vij Date: Mon, 3 Aug 2015 23:18:22 -0700 Subject: [PATCH] Change the base error class to Exception --- dyn/mm/errors.py | 2 +- dyn/tm/errors.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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