Skip to content

Commit 868162d

Browse files
author
Scott Archer-Nicholls
committed
style: deleted some unnecesary print statements to shorten example
1 parent d1be0af commit 868162d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

episodes/05-defensive_programming.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,9 @@ try:
134134
reciprocal = 1/val
135135
except TypeError as err:
136136
print('Val is not a number')
137-
print('But our code does not crash anymore')
138137
print('The run-time error is:', err)
139138
except Exception as err:
140139
print('Some error other than a TypeError occured')
141-
print('But our code does not crash')
142140
print('The run-time error is:', err)
143141
else:
144142
print('The reciprocal of the value =', reciprocal)

0 commit comments

Comments
 (0)