summaryrefslogtreecommitdiff
path: root/tutorial/py.twisted
diff options
context:
space:
mode:
authorKonrad Grochowski <hcorg@apache.org>2015-05-18 17:58:36 +0200
committerKonrad Grochowski <hcorg@apache.org>2015-05-18 19:47:23 +0200
commit3b115dfa614cfac7af86d81d99f69b381508b75e (patch)
tree525eef0ea64f6e3065ab416599c1be2b8be9e6a7 /tutorial/py.twisted
parent83cd3e8d41001304f2efac9ebad92e02d3390ca7 (diff)
downloadthrift-3b115dfa614cfac7af86d81d99f69b381508b75e.tar.gz
THRIFT-727 - C++: what() method of generated exceptions will provide more information
Patch: Anna Dymek <aadymek@gmail.com> Client: C++ This closes #469
Diffstat (limited to 'tutorial/py.twisted')
-rwxr-xr-xtutorial/py.twisted/PythonServer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/py.twisted/PythonServer.py b/tutorial/py.twisted/PythonServer.py
index f023cacb8..227f6d4a2 100755
--- a/tutorial/py.twisted/PythonServer.py
+++ b/tutorial/py.twisted/PythonServer.py
@@ -59,13 +59,13 @@ class CalculatorHandler:
elif work.op == Operation.DIVIDE:
if work.num2 == 0:
x = InvalidOperation()
- x.what = work.op
+ x.whatOp = work.op
x.why = 'Cannot divide by 0'
raise x
val = work.num1 / work.num2
else:
x = InvalidOperation()
- x.what = work.op
+ x.whatOp = work.op
x.why = 'Invalid operation'
raise x