aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/lib/utils.py
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-07-07 14:42:26 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-07-07 14:42:26 +0200
commit9c9e1058c588a3e2f80e35c5dd95bac234e597f4 (patch)
tree12b8cc24e0ef68c95c6950e306c4494ed3c1f273 /pyaggr3g470r/lib/utils.py
parentmaking the crawler getting the feed with high traffic earlier (diff)
downloadnewspipe-9c9e1058c588a3e2f80e35c5dd95bac234e597f4.tar.gz
newspipe-9c9e1058c588a3e2f80e35c5dd95bac234e597f4.tar.bz2
newspipe-9c9e1058c588a3e2f80e35c5dd95bac234e597f4.zip
rebuilding feed url as well
Diffstat (limited to 'pyaggr3g470r/lib/utils.py')
-rw-r--r--pyaggr3g470r/lib/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyaggr3g470r/lib/utils.py b/pyaggr3g470r/lib/utils.py
index 280256f6..62284de1 100644
--- a/pyaggr3g470r/lib/utils.py
+++ b/pyaggr3g470r/lib/utils.py
@@ -42,6 +42,8 @@ def rebuild_url(url, base_split):
def try_splits(url, *splits):
for split in splits:
+ if split is None:
+ continue
rb_url = rebuild_url(url, split)
response = requests.get(rb_url, verify=False, timeout=10)
if response.ok and 'html' not in response.headers['content-type']:
bgstack15