class PardotAPIError(Exception):
    """
    Basic exception class for errors encountered in API post and get requests.
    Takes the json response and parses out the error code and message.
    """

    def __init__(self, response):
        self.response = response
        try:
            self.err_code = response['@attributes']['err_code']
            self.message = str(response['err'])
        except KeyError:
            self.err_code = 0
            self.message = 'Unknown error occurred'

    def __str__(self):
        #print('Raw JSON error response: {}'.format(self.response))
        return 'Error {err_code}: {message}'.format(err_code=self.err_code, message=self.message)


class PydotError(Exception):
    """
    Exception class used by the Pydot wrapper for incorrectly formatted inputs, etc.
    """

    def __init__(self, message):
        self.message = message

    def __str__(self):
        return repr(self.message)

@@ -685,260 +685,4 @@
 age)
-%0A%0A%0Aclass PydotError(Exception):%0A    %22%22%22%0A    Exception class used by the Pydot wrapper for incorrectly formatted inputs, etc.%0A    %22%22%22%0A%0A    def __init__(self, message):%0A        self.message = message%0A%0A    def __str__(self):%0A        return repr(self.message)%0A

Delete unused PydotError class