Block a user
Optionally yield incomplete datasets
It would be one grep for "BSCache" and then changing the relevant ones to:
bscache = BSCache(..., handle_incomplete="keep")
or something similar.
And handle_incomplete could…
Optionally yield incomplete datasets
It should be the exact same change, TBH.
The idiomatic pattern is to replace
x = data["channel"]
with
x = data.get("channel")
and then something like…
Optionally yield incomplete datasets