You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 92597b4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: source/exercises/exceptions/except_exercise.rst
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This is a little exercise that shows you how to handle exceptions in a way that
9
9
Procedure
10
10
=========
11
11
12
-
Here are two files that you should put in your ``lesson05`` directory in the class repo.
12
+
Here are two files that you should be in the github classroom repo:
13
13
14
14
:download:`except_exercise.py`
15
15
@@ -23,8 +23,8 @@ Run ``except_exercise.py``::
23
23
24
24
You will find that it crashes with an exception.
25
25
26
-
Your job is to write the proper exception handler in the except_exercise.py
27
-
code, so that the code can run.
26
+
Your job is to write the proper exception handler in the
27
+
``except_exercise.py`` file, so that the code can run.
28
28
29
29
It will then crash again.
30
30
@@ -61,7 +61,7 @@ In this case, that's line 17 of ``except_exercise.py``. In real life, it can be
61
61
Results
62
62
-------
63
63
64
-
When you are done, running except_exercise.py should result in output something like this::
64
+
When you are done, running ``except_exercise.py`` should result in output something like this::
65
65
66
66
Spam, Spam, Spam, Spam, Beautiful Spam
67
67
@@ -75,4 +75,5 @@ When you are done, running except_exercise.py should result in output something
75
75
Why are you doing this?
76
76
-----------------------
77
77
78
-
This is a kind of silly exercise, but in real life, this is a common workflow -- you call a library, and find that in certain circumstances it raises an exception. As the code in the library is out of your hands, you need to decide how to handle that exception in your code instead.
78
+
This is a kind of silly exercise, but in real life, this is a common work flow -- you call a library, and find that in certain circumstances it raises an exception.
79
+
As the code in the library is out of your hands, you need to decide how to handle that exception in your code instead.
0 commit comments