Remove line attribute from warning class

Because it is already in the dictionary!