From f02c70d5de7912475cfa9cedc5826ec620872e5b Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 5 Aug 2013 16:01:44 +0200 Subject: fix 404 on updating feeds --- bin/updater.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/updater.py b/bin/updater.py index 16f0e44b0..c6a9b5d38 100644 --- a/bin/updater.py +++ b/bin/updater.py @@ -48,16 +48,17 @@ class UpdateThread(threading.Thread): return # call the update method of one feed + feed['feedId'] = feed['id'] + del feed['id'] data = urllib.parse.urlencode(feed) headers = { 'Content-type': 'application/json', 'Accept': 'text/plain' } url = '%s?%s' % (self.update_url, data) - request = urllib.request.Request(url) try: - response = urllib.request.urlopen(request) + response = urllib.request.urlopen(url) except urllib.error.HTTPError: print('%s does not exist' % url) -- cgit v1.2.3