def __init__(self, history):
    tasklist = list()
    for task in history:
        (cmd, args, kwargs) = task
        tasklist += [('%s(%s)' % (cmd, ', '.join(map(repr, args))))]
    message = ('An unexpected internal failure occurred, these tasks were attempted:\n- ' + '\n- '.join(tasklist))
    self.history = history
    super(ModifierError, self).__init__(message)
def __init__(self, history):
    tasklist = list()
    for task in history:
        (cmd, args, kwargs) = task
        tasklist += [('%s(%s)' % (cmd, ', '.join(map(repr, args))))]
    message = ('An unexpected internal failure occurred, these tasks were attempted:\n- ' + '\n- '.join(tasklist))
    self.history = history
    super(ModifierError, self).__init__(message)