equal
deleted
inserted
replaced
135 class WorkerError(Exception): |
135 class WorkerError(Exception): |
136 """Exception raised when a worker process dies.""" |
136 """Exception raised when a worker process dies.""" |
137 |
137 |
138 def __init__(self, status_code): |
138 def __init__(self, status_code): |
139 self.status_code = status_code |
139 self.status_code = status_code |
|
140 # Pass status code to superclass just so it becomes part of __bytes__ |
|
141 super(WorkerError, self).__init__(status_code) |
|
142 |
|
143 __bytes__ = _tobytes |
140 |
144 |
141 |
145 |
142 class InterventionRequired(Hint, Exception): |
146 class InterventionRequired(Hint, Exception): |
143 """Exception raised when a command requires human intervention.""" |
147 """Exception raised when a command requires human intervention.""" |
144 |
148 |