From e6856c178ab447c9ee342dccafbf00003e9be102 Mon Sep 17 00:00:00 2001 From: Martijn van der Ven Date: Sun, 13 Apr 2025 18:50:48 +0200 Subject: [PATCH] Add trailing comma, fix failing code check --- yt_dlp/cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/cookies.py b/yt_dlp/cookies.py index d9c5ac2c0..e93dcec74 100644 --- a/yt_dlp/cookies.py +++ b/yt_dlp/cookies.py @@ -154,7 +154,7 @@ def _extract_firefox_cookies(profile, container, logger): container_id = next((context.get('userContextId') for context in identities if container in ( context.get('name'), try_call(lambda: re.fullmatch(r'userContext([^\.]+)\.label', context['l10nID']).group()), - try_call(lambda: re.fullmatch(r'user-context-(.+)', context['l10nId']).group()) + try_call(lambda: re.fullmatch(r'user-context-(.+)', context['l10nId']).group()), )), None) if not isinstance(container_id, int): raise ValueError(f'could not find firefox container "{container}" in containers.json')