chapter 9: Dealing with Errors

9.1 Knowing Why Python Doesn’t Understand You

9.1.1 Linux

Automatic Install Script

$ sudo wget -qO- https://get.docker.com/ | sh

remove hell-world

$ sudo docker rm `sudo docker ps -aq`
$ sudo docker rmi hello-world

.

9.2 Considering the Sources of Errors

9.3 Catching Exceptions

9.4 Raising Exceptions

9.5 Creating and Using Custom Exceptions

9.6 Using the finally Clause