aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutils.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/utils.py b/utils.py
index 87db57dd..0f5453c3 100755
--- a/utils.py
+++ b/utils.py
@@ -417,9 +417,13 @@ def load_feed():
# Walk through the list of feeds
for feed in [x[1] for x in tupleList]:
- list_of_articles = c.execute(\
- "SELECT * FROM articles WHERE feed_link='" + \
- feed[2] + "'").fetchall()
+ try:
+ list_of_articles = c.execute(\
+ "SELECT * FROM articles WHERE feed_link='" + \
+ feed[2] + "'").fetchall()
+ except:
+ LOCKER.release()
+ continue
sha1_hash = hashlib.sha1()
sha1_hash.update(feed[2].encode('utf-8'))
feed_id = sha1_hash.hexdigest()
bgstack15