feat: optimize memory & invoke error output (#1931)
This commit is contained in:
parent
97c972f14d
commit
faf40a42bc
2 changed files with 3 additions and 11 deletions
|
|
@ -8,6 +8,9 @@ class InvokeError(Exception):
|
|||
def __init__(self, description: Optional[str] = None) -> None:
|
||||
self.description = description
|
||||
|
||||
def __str__(self):
|
||||
return self.description or self.__class__.__name__
|
||||
|
||||
|
||||
class InvokeConnectionError(InvokeError):
|
||||
"""Raised when the Invoke returns connection error."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue