Are you sure the error was from this line? Can you paste the full stack trace? I see `source_address` defined just a few lines above, on L112.