From: Harmon Date: Wed, 18 May 2022 04:18:25 +0000 (-0500) Subject: Check for async_lru when importing asynchronous subpackage X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8d544103d08b17a48dc9d424db4498184e10d8a3;p=tweepy.git Check for async_lru when importing asynchronous subpackage --- diff --git a/tweepy/asynchronous/__init__.py b/tweepy/asynchronous/__init__.py index 22c79b1..ff28002 100644 --- a/tweepy/asynchronous/__init__.py +++ b/tweepy/asynchronous/__init__.py @@ -10,11 +10,13 @@ Asynchronous interfaces with the Twitter API try: import aiohttp + import async_lru import oauthlib except ModuleNotFoundError: from tweepy.errors import TweepyException raise TweepyException( - "tweepy.asynchronous requires aiohttp and oauthlib to be installed" + "tweepy.asynchronous requires aiohttp, async_lru, and oauthlib to be " + "installed" ) from tweepy.asynchronous.streaming import AsyncStream