🔥 Caught by a Ghost: Fixing UnboundLocalError in Python Kafka Consumers

One minute your stream is flowing fine… the next, you’re staring at a baffling error: UnboundLocalError: local variable 'row' referenced…