diff options
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) |