summaryrefslogtreecommitdiff
path: root/slides/basic_python
diff options
context:
space:
mode:
authorPrabhu Ramachandran2015-02-11 18:38:25 +0530
committerPrabhu Ramachandran2015-02-11 18:38:25 +0530
commit4766c75967e8dbf805ebd1c8a7af0f6dd0516fc0 (patch)
tree1e612d2e7a73a251a5c9e66852b2e7740596a693 /slides/basic_python
parentdbc71e582f663bc79366bce9f87201d1212ac96a (diff)
downloadsees-4766c75967e8dbf805ebd1c8a7af0f6dd0516fc0.tar.gz
sees-4766c75967e8dbf805ebd1c8a7af0f6dd0516fc0.tar.bz2
sees-4766c75967e8dbf805ebd1c8a7af0f6dd0516fc0.zip
Raise exception correctly.
Diffstat (limited to 'slides/basic_python')
-rw-r--r--slides/basic_python/python_part2.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/slides/basic_python/python_part2.tex b/slides/basic_python/python_part2.tex
index e0ca77e..9faddfd 100644
--- a/slides/basic_python/python_part2.tex
+++ b/slides/basic_python/python_part2.tex
@@ -262,7 +262,7 @@ TypeError: cannot concatenate 'str' and 'int' objects
... print "Invalid number, try again..."
...
>>> # To raise exceptions
-... raise ValueError, "your error message"
+... raise ValueError("your error message")
Traceback (most recent call last):
File "<stdin>", line 2, in ?
ValueError: your error message