kopia lustrzana https://github.com/tsileo/little-boxes
Errors need __str__ to see actual error
rodzic
373781abf6
commit
2bf2b3ccaa
|
@ -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."""
|
||||
|
|
Ładowanie…
Reference in New Issue