kensanata / mastodon-archive

Archive your statuses, favorites and media using the Mastodon API (i.e. login required)
https://alexschroeder.ch/software/Mastodon_Archive
GNU General Public License v3.0
358 stars 33 forks source link

Error when archiving new account --with-mentions with 0 new items #66

Closed melissaboiko closed 3 years ago

melissaboiko commented 3 years ago

mastodon-archive archive --with-mentions myaccount@example.com
Loading existing archive: example.com.user.myaccount.json
Get user info
Get new statuses
▏
Added a total of 0 new items
Get new favourites
▏
Added a total of 0 new items
Get new notifications and look for mentions
▏Traceback (most recent call last):
  File "/usr/local/bin/mastodon-archive", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/mastodon_archive/__init__.py", line 318, in main
    args.command(args)
  File "/usr/local/lib/python3.7/dist-packages/mastodon_archive/archive.py", line 166, in archive
    mentions = complete(data["mentions"], mastodon.notifications(limit=100), is_mention)
  File "/usr/local/lib/python3.7/dist-packages/mastodon_archive/archive.py", line 121, in complete
    print("Added a total of %d new items" % count)
TypeError: %d format: a number is required, not NoneType

Possibly relevant: