Removes 3-style raise style to avoid syntax errors with Python 3