Remove stray line of code that was left in; double check that frame is not None--this can happen sometimes during exception handling.