def __init__(self, error):
    'Instantiate super class with passed message.'
    self.message = 'No domains were passed!'
    super().__init__(self.message)
Instantiate super class with passed message.
def __init__(self, error):
    
    self.message = 'No domains were passed!'
    super().__init__(self.message)