diff --git a/platypush/plugins/http/webpage.py b/platypush/plugins/http/webpage.py index 52ef278c..cfa6dc8c 100644 --- a/platypush/plugins/http/webpage.py +++ b/platypush/plugins/http/webpage.py @@ -1,5 +1,6 @@ import os import requests +import time from platypush.plugins import action from platypush.plugins.http.request import Plugin @@ -60,7 +61,7 @@ class HttpWebpagePlugin(Plugin): if not response or not response.ok: raise RuntimeError("Unable to parse content for {}: {}".format(url, response.reason)) - title = response.json()['title'] + title = response.json().get('title', 'No_title_{}'.format(int(time.time()))) content = '