From 2bf2b3ccaa5f2221f7dd36b980a1d97a7687baba Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 22 Jun 2018 09:05:13 -0400 Subject: [PATCH] Errors need __str__ to see actual error --- little_boxes/errors.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/little_boxes/errors.py b/little_boxes/errors.py index 33455de..e90905c 100644 --- a/little_boxes/errors.py +++ b/little_boxes/errors.py @@ -32,6 +32,9 @@ class Error(Exception): f"payload={self.payload!r}, status_code={self.status_code})" ) + def __str__(self) -> str: + return self.__repr__() + class ActorBlockedError(Error): """Raised when an activity from a blocked actor is received."""