Revision 5a1c22fe lib/rapi/baserlib.py
b/lib/rapi/baserlib.py | ||
---|---|---|
190 | 190 |
except errors.JobQueueDrainError: |
191 | 191 |
raise http.HttpServiceUnavailable("Job queue is drained, cannot submit") |
192 | 192 |
except luxi.NoMasterError, err: |
193 |
raise http.HttpBadGateway("Master seems to unreachable: %s" % str(err)) |
|
193 |
raise http.HttpBadGateway("Master seems to be unreachable: %s" % str(err)) |
|
194 |
except luxi.PermissionError: |
|
195 |
raise http.HttpInternalServerError("Internal error: no permission to" |
|
196 |
" connect to the master daemon") |
|
194 | 197 |
except luxi.TimeoutError, err: |
195 | 198 |
raise http.HttpGatewayTimeout("Timeout while talking to the master" |
196 | 199 |
" daemon. Error: %s" % str(err)) |
... | ... | |
217 | 220 |
return luxi.Client() |
218 | 221 |
except luxi.NoMasterError, err: |
219 | 222 |
raise http.HttpBadGateway("Master seems to unreachable: %s" % str(err)) |
223 |
except luxi.PermissionError: |
|
224 |
raise http.HttpInternalServerError("Internal error: no permission to" |
|
225 |
" connect to the master daemon") |
|
220 | 226 |
|
221 | 227 |
|
222 | 228 |
def FeedbackFn(msg): |
Also available in: Unified diff