diff --git a/platypush/backend/pushbullet/__init__.py b/platypush/backend/pushbullet/__init__.py index 864d79dd..2c79db6c 100644 --- a/platypush/backend/pushbullet/__init__.py +++ b/platypush/backend/pushbullet/__init__.py @@ -89,10 +89,14 @@ class PushbulletBackend(Backend): self.logger.debug('Received push: {}'.format(push)) body = push['body'] - try: body = json.loads(body) - except ValueError as e: return # Some other non-JSON push + try: + body = json.loads(body) + self.on_message(body) + except Exception as e: + self.logger.debug(('Unexpected message received on the ' + + 'Pushbullet backend: {}. Message: {}') + .format(str(e), body)) - self.on_message(body) except Exception as e: self.logger.exception(e) return