Skip to content

Commit

Permalink
Handle deleted accounts for frontpage script
Browse files Browse the repository at this point in the history
  • Loading branch information
durinthal committed Oct 1, 2023
1 parent 9c913f8 commit b179b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/frontpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _format_line(submission, position, rank_change, total_hours):

line += " {:>24}".format(f"[{submission.link_flair_text}]({submission.id})")

line += f" <{submission.author.name}>"
line += f" <{submission.author.name}>" if submission.author is not None else " <[deleted]>"

line += f" <{reddit_utils.slug(submission)}>"

Expand Down

0 comments on commit b179b53

Please sign in to comment.