Revision 2cc6781a daemons/ganeti-noded
b/daemons/ganeti-noded | ||
---|---|---|
95 | 95 |
try: |
96 | 96 |
try: |
97 | 97 |
return method(req.request_body) |
98 |
except backend.RPCFail, err: |
|
99 |
# our custom failure exception; str(err) works fine if the |
|
100 |
# exception was constructed with a single argument, and in |
|
101 |
# this case, err.message == err.args[0] == str(err) |
|
102 |
return (False, str(err)) |
|
98 | 103 |
except: |
99 | 104 |
logging.exception("Error in RPC call") |
100 | 105 |
raise |
Also available in: Unified diff