projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a02e54b
)
Check oauthlib installation when importing asynchronous subpackage
author
Harmon
<Harmon758@gmail.com>
Sun, 16 May 2021 11:06:15 +0000
(06:06 -0500)
committer
Harmon
<Harmon758@gmail.com>
Sun, 16 May 2021 11:06:15 +0000
(06:06 -0500)
tweepy/asynchronous/__init__.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/asynchronous/__init__.py
b/tweepy/asynchronous/__init__.py
index aac29bb9e4a6ad70c4fca2180708527b7e6239ec..72ff5c65d16a9f7e33432b81a6f3014f2473b738 100644
(file)
--- a/
tweepy/asynchronous/__init__.py
+++ b/
tweepy/asynchronous/__init__.py
@@
-10,8
+10,11
@@
Asynchronous interfaces with the Twitter API
try:
import aiohttp
+ import oauthlib
except ModuleNotFoundError:
from tweepy.errors import TweepyException
- raise TweepyException("tweepy.asynchronous requires aiohttp to be installed")
+ raise TweepyException(
+ "tweepy.asynchronous requires aiohttp and oauthlib to be installed"
+ )
from tweepy.asynchronous.streaming import AsyncStream