aboutsummaryrefslogtreecommitdiff
path: root/source/utils.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-27 16:51:01 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-27 16:51:01 +0100
commit74151c9cfdc4dfe52f54fedc8de070adaaf6880d (patch)
treea57cc903ca505d7a32746c126c74443f51a0b3df /source/utils.py
parentMail are now encoded with utf-8 (plain and html). (diff)
downloadnewspipe-74151c9cfdc4dfe52f54fedc8de070adaaf6880d.tar.gz
newspipe-74151c9cfdc4dfe52f54fedc8de070adaaf6880d.tar.bz2
newspipe-74151c9cfdc4dfe52f54fedc8de070adaaf6880d.zip
Test if success when changing the URL of a feed.
Diffstat (limited to 'source/utils.py')
-rwxr-xr-xsource/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/utils.py b/source/utils.py
index 75ba6b07..e6baa124 100755
--- a/source/utils.py
+++ b/source/utils.py
@@ -204,9 +204,10 @@ def change_feed_url(old_feed_url, new_feed_url):
try:
lines[lines.index(old_feed_url)] = new_feed_url
except:
- return
+ return False
with open(conf.FEED_LIST, "w") as f:
f.write("\n".join(lines))
+ return True
def remove_feed(feed_url):
"""
bgstack15