Get response not body
This commit is contained in:
@ -36,7 +36,7 @@ class Post:
|
||||
if self._thumbnail_data is not None:
|
||||
return self._thumbnail_data
|
||||
for i in range(5):
|
||||
res = scraper.get(ThumbnailURL(self.image_dir, self.image_id), retry=False)
|
||||
res = scraper.get(ThumbnailURL(self.image_dir, self.image_id), retry=False, body=False)
|
||||
if res.status_code == 200:
|
||||
self._thumbnail_data = res.content
|
||||
if res.status_code == 404:
|
||||
|
||||
Reference in New Issue
Block a user