Skip to content

Commit

Permalink
Switch the ordering of things.
Browse files Browse the repository at this point in the history
This was noted in comments.

Note however that what comes from parser would be a string, so the chance we have 'None' is nearly zero.
  • Loading branch information
teward committed Apr 17, 2017
1 parent 22c6407 commit c86899d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spamhandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def handle_spam(post, reasons, why):
else:
prefix_ms = prefix

if not post.user_name.strip() or (poster_url.strip() == "" or not poster_url):
if not post.user_name.strip() or (not poster_url or poster_url.strip() == "" ):
s = u" {}: [{}]({}) by a deleted user on `{}`".format(reason, sanitized_title.strip(), post_url,
shortened_site)
username = ""
Expand Down

0 comments on commit c86899d

Please sign in to comment.