aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnewspipe/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/newspipe/commands.py b/newspipe/commands.py
index 8bcefcad..a1c58f5b 100755
--- a/newspipe/commands.py
+++ b/newspipe/commands.py
@@ -149,11 +149,11 @@ def fetch_asyncio(user_id=None, feed_id=None):
try:
feed_id = int(feed_id)
- except:
+ except Exception:
feed_id = None
loop = asyncio.get_event_loop()
- queue = asyncio.Queue(maxsize=3, loop=loop)
+ queue = asyncio.Queue(maxsize=3)
producer_coro = default_crawler.retrieve_feed(queue, users, feed_id)
consumer_coro = default_crawler.insert_articles(queue, 1)
bgstack15