mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-02-01 12:01:41 +01:00
[twitter] fix crash on private user (#4349)
This commit is contained in:
parent
1ece3b92ff
commit
7fbc304ae9
@ -340,7 +340,11 @@ class TwitterExtractor(Extractor):
|
||||
return tdata
|
||||
|
||||
def _transform_user(self, user):
|
||||
uid = user.get("rest_id") or user["id_str"]
|
||||
try:
|
||||
uid = user.get("rest_id") or user["id_str"]
|
||||
except KeyError:
|
||||
# private/invalid user (#4349)
|
||||
return {}
|
||||
|
||||
try:
|
||||
return self._user_cache[uid]
|
||||
|
Loading…
x
Reference in New Issue
Block a user