Closed lnlyssg closed 1 year ago
I'm now getting this, now that I'm trying to sync for the first time.
2023-01-17 23:03:34,920 INFO Adding new block: <DomainBlock {'domain': 'activitypub-proxy.cf', 'severity': 'suspend', 'public_comment': '', 'private_comment': '', 'reject_media': False, 'reject_reports': False, 'obfuscate': False}>...
2023-01-17 23:03:38,149 INFO Change detected. Need to update ['public_comment'] for domain block for activitypub-troll.cf
2023-01-17 23:03:38,150 INFO Old block definition: <DomainBlock {'domain': 'activitypub-troll.cf', 'severity': 'suspend', 'public_comment': 'Disallowed Content', 'private_comment': '', 'reject_media': False, 'reject_reports': False, 'obfuscate': False, 'id': '290'}>
2023-01-17 23:03:38,150 INFO Pushing new block definition: <DomainBlock {'domain': 'activitypub-troll.cf', 'severity': 'suspend', 'public_comment': '', 'private_comment': '', 'reject_media': False, 'reject_reports': False, 'obfuscate': False}>
Traceback (most recent call last):
File "/usr/local/bin/fediblock-sync", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/fediblockhole/__init__.py", line 726, in main
sync_blocklists(args)
File "/usr/local/lib/python3.10/dist-packages/fediblockhole/__init__.py", line 92, in sync_blocklists
push_blocklist(token, domain, merged.values(), conf.dryrun, import_fields, max_followed_severity)
File "/usr/local/lib/python3.10/dist-packages/fediblockhole/__init__.py", line 564, in push_blocklist
update_known_block(token, host, blockdata)
File "/usr/local/lib/python3.10/dist-packages/fediblockhole/__init__.py", line 479, in update_known_block
json=blockdata._asdict(),
AttributeError: 'dict' object has no attribute '_asdict'
Fixed by #31
I successfully used 0.4.0 to pull the mastodon.social blocklist and populate my own. I just updated the tool to 0.4.1 but now it's failing: