From 9294c26ffaafbf8ab31584a30a17a455442f8d64 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Sun, 21 Aug 2022 01:58:41 +0000 Subject: [PATCH] Make PeriscopeBroadcastCard.thumbnailUrl optional to handle tweets without a thumbnail Fixes #507 --- snscrape/modules/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snscrape/modules/twitter.py b/snscrape/modules/twitter.py index c08c4bc..fd093cb 100644 --- a/snscrape/modules/twitter.py +++ b/snscrape/modules/twitter.py @@ -226,7 +226,7 @@ class PeriscopeBroadcastCard(Card): description: str state: str totalParticipants: int - thumbnailUrl: str + thumbnailUrl: typing.Optional[str] = None source: typing.Optional[str] = None broadcaster: typing.Optional['User'] = None siteUser: typing.Optional['User'] = None