diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2022-01-01 14:03:30 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2022-01-01 14:03:30 +0100 |
commit | f41043263ddea1070f9320560478d21297c31425 (patch) | |
tree | fba69bd842eff203e1457ca4cad99c38cf3310b4 | |
parent | chg: [style] Format with black. (diff) | |
download | newspipe-f41043263ddea1070f9320560478d21297c31425.tar.gz newspipe-f41043263ddea1070f9320560478d21297c31425.tar.bz2 newspipe-f41043263ddea1070f9320560478d21297c31425.zip |
TypeError: As of 3.10, the *loop* parameter was removed from
Queue() since it is no longer necessary.
-rwxr-xr-x | newspipe/commands.py | 4 |
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) |