From 9f1120df8e76e90368e888d1f5791defc7204d2f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 8 Sep 2013 11:04:47 +0200 Subject: Added a function which opens a URL safely. --- source/feedgetter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/feedgetter.py') diff --git a/source/feedgetter.py b/source/feedgetter.py index a27a068c..6be8b28d 100755 --- a/source/feedgetter.py +++ b/source/feedgetter.py @@ -107,7 +107,7 @@ class FeedGetter(object): Executed in a thread. """ - if utils.detect_url_errors([the_good_url]) == []: + if utils.open_url(the_good_url)[0] == True: # if ressource is available add the articles in the base. self.add_into_database(the_good_url, feed_original) -- cgit