fix test for None

This commit is contained in:
jakeogh 2024-05-14 17:53:31 -07:00
parent f09e66bb3f
commit 1a0cf3ced4

View file

@ -3447,7 +3447,7 @@ def extract_thread(contents, entity_payloads):
comment_thread_renderer = try_get(content, lambda x: x['commentThreadRenderer'])
# old comment format
if entity_payloads is None:
if not entity_payloads:
comment_renderer = get_first(
(comment_thread_renderer, content), [['commentRenderer', ('comment', 'commentRenderer')]],
expected_type=dict, default={})