reddit: ignore authorless messages

This commit is contained in:
moneromooo 2015-02-09 20:02:26 +00:00
parent 95ad92bc3e
commit 184476409c
1 changed files with 3 additions and 1 deletions

View File

@ -99,7 +99,9 @@ class RedditNetwork(Network):
return False
def _parse(self,item,is_pm):
author=self.canonicalize(item.author.name) if hasattr(item,'author') else None
if not hasattr(item,'author'):
return
author=self.canonicalize(item.author.name)
if author==self.canonicalize(self.login):
return