

def __init__(self, message, code=None):
    self.raw_message = message
    if isinstance(message, list):
        message = ', '.join((m for m in message if m))
    super(ChefError, self).__init__(message)
    self.code = code

dataset/ETHPy150Open coderanger/pychef/chef/exceptions.py ChefServerError.__init__/original