summaryrefslogtreecommitdiff
path: root/tutorial/py/PythonServer.py
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/py/PythonServer.py')
-rwxr-xr-xtutorial/py/PythonServer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/py/PythonServer.py b/tutorial/py/PythonServer.py
index 014a12e35..533b0ea95 100755
--- a/tutorial/py/PythonServer.py
+++ b/tutorial/py/PythonServer.py
@@ -56,13 +56,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