Repository: yt-dlp
Issue: Condé Nast: `AttributeError: 'NoneType' object has no attribute 'items'`
Labels: site-bug,patch-available

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [x] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [x] I'm reporting that yt-dlp is broken on a **supported** site
- [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [x] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [x] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [x] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [x] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [x] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

_No response_

### Provide a description that is worded well enough to be understood

yt-dlp worked for all other videos in the [series](https://www.bonappetit.com/video/series/handcrafted), but [this specific video](https://www.bonappetit.com/video/watch/handcrafted-how-to-make-japanese-candy-8-types-of-wagashi) crashes with `AttributeError: 'NoneType' object has no attribute 'items'`.

### Provide verbose output that clearly demonstrates the problem

- [x] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [x] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', 'https://www.bonappetit.com/video/watch/handcrafted-how-to-make-japanese-candy-8-types-of-wagashi']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2025.01.15 from yt-dlp/yt-dlp [c8541f8b1] (pip)
[debug] Python 3.13.1 (CPython x86_64 64bit) - macOS-15.2-x86_64-64bit-Mach-O (OpenSSL 3.4.0 22 Oct 2024)
[debug] exe versions: ffmpeg 7.1 (setts), ffprobe 7.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.12.14, mutagen-1.47.0, requests-2.32.3, sqlite3-3.48.0, urllib3-2.3.0, websockets-14.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1837 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2025.01.15 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2025.01.15 from yt-dlp/yt-dlp)
[CondeNast] Extracting URL: https://www.bonappetit.com/video/watch/handcrafted-how-to-make-japanese-candy-8-types-of-wagashi
[CondeNast] watch: Downloading webpage
[CondeNast] 62cf10482e21da1f6aa6b76c: Downloading embed info
[CondeNast] 62cf10482e21da1f6aa6b76c: Downloading m3u8 information
ERROR: 'NoneType' object has no attribute 'items'
Traceback (most recent call last):
  File "/usr/local/Cellar/yt-dlp/2025.1.15/libexec/lib/python3.13/site-packages/yt_dlp/YoutubeDL.py", line 1637, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/Cellar/yt-dlp/2025.1.15/libexec/lib/python3.13/site-packages/yt_dlp/YoutubeDL.py", line 1772, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/Cellar/yt-dlp/2025.1.15/libexec/lib/python3.13/site-packages/yt_dlp/extractor/common.py", line 742, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/Cellar/yt-dlp/2025.1.15/libexec/lib/python3.13/site-packages/yt_dlp/extractor/condenast.py", line 246, in _real_extract
    info.update(self._extract_video(params))
                ~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/local/Cellar/yt-dlp/2025.1.15/libexec/lib/python3.13/site-packages/yt_dlp/extractor/condenast.py", line 199, in _extract_video
    for t, caption in video_info.get('captions', {}).items():
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'items'
```