mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Merge branch 'master' of github.com:samuelclay/NewsBlur
* 'master' of github.com:samuelclay/NewsBlur: Wordpress PuSH errors aren't really errors, so don't log them.
This commit is contained in:
commit
58ece7dfc2
1 changed files with 3 additions and 3 deletions
|
@ -65,14 +65,14 @@ class PushSubscriptionManager(models.Manager):
|
||||||
subscription.verified = False
|
subscription.verified = False
|
||||||
else:
|
else:
|
||||||
error = response.content
|
error = response.content
|
||||||
logging.debug(u' ---> [%-30s] ~FR~BKFeed failed to subscribe to push: %s' % (
|
|
||||||
unicode(subscription.feed)[:30], error))
|
|
||||||
|
|
||||||
if not force_retry and 'You may only subscribe to' in error:
|
if not force_retry and 'You may only subscribe to' in error:
|
||||||
extracted_topic = re.search("You may only subscribe to (.*?) ", error)
|
extracted_topic = re.search("You may only subscribe to (.*?) ", error)
|
||||||
if extracted_topic:
|
if extracted_topic:
|
||||||
subscription = self.subscribe(extracted_topic.group(1),
|
subscription = self.subscribe(extracted_topic.group(1),
|
||||||
feed=feed, hub=hub, force_retry=True)
|
feed=feed, hub=hub, force_retry=True)
|
||||||
|
else:
|
||||||
|
logging.debug(u' ---> [%-30s] ~FR~BKFeed failed to subscribe to push: %s' % (
|
||||||
|
unicode(subscription.feed)[:30], error))
|
||||||
|
|
||||||
subscription.save()
|
subscription.save()
|
||||||
feed.setup_push()
|
feed.setup_push()
|
||||||
|
|
Loading…
Add table
Reference in a new issue