class RobotError(Exception):
    def __init__(self, message, status=None):
        self.message = message
        self.status = status

    def __repr__(self):
        if self.status is None:
            return self.message
        else:
            return "{0} ({1})".format(self.message, self.status)


class ManualReboot(Exception):
    pass


class ConnectError(Exception):
    pass


class WebRobotError(RobotError):
    pass

class RobotError(Exception):
    def __init__(self, message, status=None):
        self.message = message
        self.status = status

    def __str__(self):
        if self.status is None:
            return self.message
        else:
            return "{0} ({1})".format(self.message, self.status)


class ManualReboot(Exception):
    pass


class ConnectError(Exception):
    pass


class WebRobotError(RobotError):
    pass

Use __str__ for formatting the error.
RobotError: Use __str__ for formatting the error.

On a traceback, the __str__ value will be read instead of __repr__ so we
get the name of the exception class, but not the actual exception.

This is now no longer the case :-)

Signed-off-by: aszlig <ee1aa092358634f9c53f01b5a783726c9e21b35a@redmoonstudios.org>
