@jone removed statement because the getattr() in _get_assignment_class will raise the error anyway. We'll never get None in assignment_class.