I don't believe you tested for the None condition nor that line 184 handles the None condition