mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-07-14 11:48:55 +00:00

When a query results of 0 items, the key items is not present in the api_response dictionary, raising a KeyError. Intead, look for the key and call trouble if it's not present.