Turning off PuSH if no hub url found.

This commit is contained in:
Samuel Clay 2013-03-07 10:58:05 -05:00
parent bdd60bf3f7
commit e4fc8b6c49

View file

@ -242,6 +242,11 @@ class ProcessFeed:
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],