Skip to content

Commit

Permalink
Fix filtering invalid mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
oraclown committed Oct 18, 2022
1 parent aec1121 commit 747d4a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions faucet/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ def run():

new_mentions.append(mention)
checked_mentions.add(mention.id)

print("From: ", mention.user.screen_name)

faucet_requests = get_networks_and_addresses(new_mentions)
print("Faucet requests:", faucet_requests)
Expand Down
2 changes: 1 addition & 1 deletion faucet/scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_networks_and_addresses(mentions: list) -> list:
networks_and_addresses = []
for mention in mentions:
parsed = parse_mention_text(mention.text)
if parsed:
if parsed is not None and None not in parsed:
networks_and_addresses.append(parsed)

return networks_and_addresses

0 comments on commit 747d4a6

Please sign in to comment.