Which line do I fix — top or bottom of the traceback?

LucasVDOP

The traceback has several File lines.

7

Comments 4

Log in to join the discussion.

Log in Create account
  1. MateoGreplies: 2

    Read from the bottom up. The last line tells you the error type and message. The lowest File entry is where it actually crashed. The ones above show how you got there (the call chain).

    0
    1. LucasVDOPreplies: 1

      Bottom-up. Found the crash in average_kelvin.

      0
      1. SamPrice

        And text temperatures must be accepted — float() conversion somewhere.

        3
    2. HenryWrites

      Stage 2: the bug might be in a different function than where you'd expect. Trust the traceback, not your intuition.

      4