Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Error Handling!
You have completed Practice Error Handling!
Preview
See how each error can be handled using Python's try/except blocks.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
The first thing I'm going to do is I'm
actually going to comment out which is
0:00
command slash everything down below, so
that I can handle one error at a time.
0:02
And I'm going to move up the terminal
a little bit, do python3 app.py, and
0:07
you can see this is the error I'm going
to get for what's happening on line 3.
0:13
It's going to tell me value error, and
invalid literal for int with base 10 tree.
0:19
So in here, I'm gonna do try,
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up