bellingcat / auto-archiver

Automatically archive links to videos, images, and social media content from Google Sheets (and more).
https://pypi.org/project/auto-archiver/
MIT License
578 stars 60 forks source link

Resolve telethon issues #21

Closed loganwilliams closed 2 years ago

loganwilliams commented 2 years ago
2022-03-18 11:06:22.340 | ERROR    | __main__:process_sheet:134 - Got unexpected error in row 2879 with archiver TelethonArchiver for url [...]: 'NoneType' object has no attribute 'grouped_id'
Traceback (most recent call last):
  File "/Volumes/Oxygen/auto-archiver/auto_archive.py", line 131, in process_sheet
    result = archiver.download(url, check_if_exists=True)
  File "/Volumes/Oxygen/auto-archiver/archivers/telethon_archiver.py", line 65, in download
    media_posts = self._get_media_posts_in_group(chat, post)
  File "/Volumes/Oxygen/auto-archiver/archivers/telethon_archiver.py", line 41, in _get_media_posts_in_group
    if post.grouped_id == original_post.grouped_id and post.media is not None:
AttributeError: 'NoneType' object has no attribute 'grouped_id'
msramalho commented 2 years ago

approved so far, can look at other issues afterwards

msramalho commented 2 years ago

Fixed all issues reported.