aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-28 15:50:33 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-28 15:50:33 +0200
commitdbbfcb175f5c6feb6185046cb4ede8cccb5077bd (patch)
tree9b453b4f137e80c6a79dea35473392f57e0f9dde
parentfix (diff)
downloadnewspipe-dbbfcb175f5c6feb6185046cb4ede8cccb5077bd.tar.gz
newspipe-dbbfcb175f5c6feb6185046cb4ede8cccb5077bd.tar.bz2
newspipe-dbbfcb175f5c6feb6185046cb4ede8cccb5077bd.zip
fix
-rwxr-xr-xsrc/manager.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/manager.py b/src/manager.py
index 82a71cc6..a256684f 100755
--- a/src/manager.py
+++ b/src/manager.py
@@ -58,12 +58,12 @@ def fetch_asyncio(user_id, feed_id):
ucontr = UserController()
users = []
try:
- users = [ucontr.get(user_id)]
- except:
- users = ucontr.read()
+ users = ucontr.read(id=int(user_id)).all()
+ except Exception as e:
+ users = ucontr.read().all()
finally:
if users == []:
- users = ucontr.read()
+ users = ucontr.read().all()
try:
feed_id = int(feed_id)
bgstack15