Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'WebPagePending' object has no attribute 'url' #124

Open
kenorb opened this issue Jan 12, 2024 · 0 comments
Open

AttributeError: 'WebPagePending' object has no attribute 'url' #124

kenorb opened this issue Jan 12, 2024 · 0 comments

Comments

@kenorb
Copy link

kenorb commented Jan 12, 2024

$ tg-archive --sync
...
2024-01-12 23:44:03,791: fetched 166800 messages
Traceback (most recent call last):
  File ".local/bin/tg-archive", line 8, in <module>
    sys.exit(main())
  File ".local/lib/python3.10/site-packages/tgarchive/__init__.py", line 142, in main
    s.sync(args.id, args.from_id)
  File ".local/lib/python3.10/site-packages/tgarchive/sync.py", line 56, in sync
    for m in self._get_messages(group_id,
  File ".local/lib/python3.10/site-packages/tgarchive/sync.py", line 168, in _get_messages
    med = self._get_media(m)
  File ".local/lib/python3.10/site-packages/tgarchive/sync.py", line 278, in _get_media
    url=msg.media.webpage.url,
AttributeError: 'WebPagePending' object has no attribute 'url'
$ tg-archive --version
v1.1.3

This happens at random, running it again works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant