Urgent.News

What's breaking now, across hundreds of outlets.

World

The weather service returned a null temperature. Our video build crashed on it.

Yesterday our own verification gate killed the national weather video: 99.6 seconds against a 60–90 second band, so Thanksgiving morning got no video. Today the video shipped — 87.90 seconds, inside the band, live on YouTube as a Short. But it almost didn't, for a completely different reason. This morning the build crashed before it ever got to the gate. The crash was in the part of the pipeline…

Yesterday, the national weather video failed to be included in the national broadcast due to a timing issue. The video was built but not shipped, missing the 60-90 second range required for airing. Today, the video was finally delivered at 87.90 seconds, fitting within the acceptable range and being live on YouTube as a Short. However, the video never made it to the verification gate.

The build crashed before reaching the gate due to a null temperature in the National Weather Service forecast. The code attempted to calculate the maximum and minimum temperatures of the day by iterating through every forecast period, but encountered a TypeError when comparing an integer with None, as Python does not allow such comparison.

This null temperature was present but not missing, making it a legitimate null value. The code expected nulls to never occur, leading to the crash. The fix was straightforward, requiring just four lines of code: filtering out the nulls before calculating the max and min temperatures. The rest of the day's data was accurate and presented without issues.

The video was built successfully and posted at 08:29, showcasing the hottest temperature in Los Angeles at 84 degrees, the coldest in Minneapolis at 29 degrees, and seventy-five severe weather alerts in effect. The regions segment, which was still pending, only added 28.74 seconds to the build time. The overall video fit within the acceptable range, and the gate passed.

However, the gate's decision was based on the shorter day's segments, not the successful fix of the null temperature issue. The issue remains unresolved, but its fix is guaranteed to remain fixed. Null values are common in real-world data, and this incident highlights the importance of proper handling of nulls in data processing pipelines.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in World

More from Saturday, 28 November 2026 →