No need for a ```else```: with the ```raise```, you know you will exit the code path anyway, so you can unindent the whole ```else``` block (and make it more readable).