Autograder correctly fails cell, but code in cell is wrong

You must be talking about a locked ungraded cell. Please check out this FAQ for some explanation, however, a short conclusion is that you need to trace backward to which of your exercise function was being called in that ungraded cell which triggered error. Then, fix problem in that exercise function.