diff --git a/tipbot/modules/reddit.py b/tipbot/modules/reddit.py index 155071a..87af504 100644 --- a/tipbot/modules/reddit.py +++ b/tipbot/modules/reddit.py @@ -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