I think each of these ```if``` clauses needs this:
```
else:
    raise
```