Skip to content

Commit 877c6a0

Browse files
committed
Added new exceptions to follow izulu flow
Signed-off-by: chandr-andr (Kiselev Aleksandr) <[email protected]>
1 parent 88c2b9b commit 877c6a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

taskiq/exceptions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
class TaskiqError(root.Error):
77
"""Base exception for all errors."""
88

9-
__template__ = "Exception occurred: {description}"
10-
description: Optional[str] = None
9+
__template__ = "Exception occurred"
1110

1211

1312
class TaskiqResultTimeoutError(TaskiqError):
@@ -89,6 +88,8 @@ class SecurityError(TaskiqError):
8988
class NoResultError(TaskiqError):
9089
"""Error if user does not want to set result."""
9190

91+
__template__ = "User doesn't want to set result"
92+
9293

9394
class TaskRejectedError(TaskiqError):
9495
"""Task was rejected."""

0 commit comments

Comments
 (0)