diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-09-28 15:50:33 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-09-28 15:50:33 +0200 |
commit | dbbfcb175f5c6feb6185046cb4ede8cccb5077bd (patch) | |
tree | 9b453b4f137e80c6a79dea35473392f57e0f9dde /src/manager.py | |
parent | fix (diff) | |
download | newspipe-dbbfcb175f5c6feb6185046cb4ede8cccb5077bd.tar.gz newspipe-dbbfcb175f5c6feb6185046cb4ede8cccb5077bd.tar.bz2 newspipe-dbbfcb175f5c6feb6185046cb4ede8cccb5077bd.zip |
fix
Diffstat (limited to 'src/manager.py')
-rwxr-xr-x | src/manager.py | 8 |
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) |