Skip to content

Commit

Permalink
Merge branch 'main' into filelink-duplicate-check
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse-reeve authored Mar 9, 2024
2 parents 8d018b8 + 6dfb500 commit b68a4cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bookwyrm/models/bookwyrm_export_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ def json_export(
exported_user = user.to_activity()
# I don't love this but it prevents a JSON encoding error
# when there is no user image
if isinstance(
exported_user["icon"],
dataclasses._MISSING_TYPE, # pylint: disable=protected-access
):
if exported_user.get("icon") in (None, dataclasses.MISSING):
exported_user["icon"] = {}
else:
# change the URL to be relative to the JSON file
Expand Down

0 comments on commit b68a4cc

Please sign in to comment.