aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index cf0af11e..ad43bda6 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -602,9 +602,12 @@ class pyAggr3g470r(object):
"""
try:
feed_id, article_id = param.split(':')
+ # Delete from the MonfoDB database
self.mongo.delete_article(feed_id, article_id)
- except:
- return self.error("<p>Bad URL. This article do not exists.</p>")
+ # Delete from the Whoosh index
+ search.delete_article(feed_id, article_id)
+ except Exception as e:
+ return self.error("<p>Bad URL. This article do not exists.</p>"+str(e))
return self.index()
bgstack15