This block will never be reached because `raise` stops the execution. I guess you want to put the `raise` statement to the end?