1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

[vk] prevent exception for empty/private profiles (fixes 1742)

This commit is contained in:
Mike Fährmann 2021-08-02 15:35:54 +02:00
parent ac91a84543
commit fe970fc87f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -88,6 +88,7 @@ class VkPhotosExtractor(Extractor):
yield Message.Directory, data
sub = re.compile(r"/imp[fg]/").sub
needle = 'data-id="{}_'.format(user_id)
cnt = 0
while True:
offset, html = self.request(