def __init__(self, error):
    'Instantiate super class with passed message using passed in error.'
    self.message = ('The following error occurred in findcdn while file writing:\n' + repr(error))
    super().__init__(self.message)
Instantiate super class with passed message using passed in error.
def __init__(self, error):
    
    self.message = ('The following error occurred in findcdn while file writing:\n' + repr(error))
    super().__init__(self.message)