If an `AttributeError` is raised here it will set `None` below. I'd not set anything at all in this situation (`None` might be invalid).