Skip to content

Commit

Permalink
Turning off PuSH if no hub url found.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelclay committed Mar 7, 2013
1 parent bdd60bf commit e4fc8b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/feed_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ def process(self):
self.feed.title[:30],
"~SKRe-~SN" if push_expired else "", hub_url))
PushSubscription.objects.subscribe(self_url, feed=self.feed, hub=hub_url)
elif self.feed.is_push and not hub_url:
logging.debug(u' ---> [%-30s] ~BB~FWTurning off PuSH, no hub found' % (
self.feed.title[:30]))
self.feed.is_push = False
self.feed = self.feed.save()

logging.debug(u' ---> [%-30s] ~FYParsed Feed: %snew=%s~SN~FY %sup=%s~SN same=%s%s~SN %serr=%s~SN~FY total=~SB%s' % (
self.feed.title[:30],
Expand Down

0 comments on commit e4fc8b6

Please sign in to comment.