aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/gamejolt.py
diff options
context:
space:
mode:
authorSimon Sawicki <contact@grub4k.xyz>2023-02-10 03:56:26 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-02-10 19:36:55 +0530
commit6839ae1f6dde4c0442619e351b3f0442312ab4f9 (patch)
treebb41a1aebf34e2b28f1301dbbe584c40e4ecf8fa /yt_dlp/extractor/gamejolt.py
parentc0cd13fb1c71b842c3d272d0273c03542b467766 (diff)
[utils] `traverse_obj`: Fix more bugs
and cleanup uses of `default=[]` Continued from b1bde57bef878478e3503ab07190fd207914ade9
Diffstat (limited to 'yt_dlp/extractor/gamejolt.py')
-rw-r--r--yt_dlp/extractor/gamejolt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/gamejolt.py b/yt_dlp/extractor/gamejolt.py
index 440b832fc..8ec046bb3 100644
--- a/yt_dlp/extractor/gamejolt.py
+++ b/yt_dlp/extractor/gamejolt.py
@@ -48,7 +48,7 @@ class GameJoltBaseIE(InfoExtractor):
post_hash_id, note='Downloading comments list page %d' % page)
if not comments_data.get('comments'):
break
- for comment in traverse_obj(comments_data, (('comments', 'childComments'), ...), expected_type=dict, default=[]):
+ for comment in traverse_obj(comments_data, (('comments', 'childComments'), ...), expected_type=dict):
yield {
'id': comment['id'],
'text': self._parse_content_as_text(