File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 2.1.1
4+
5+ - Handling ` ModuleNotFoundError ` exception when importing ` aioredis `
6+
37
48## 2.1.0
59
Original file line number Diff line number Diff line change 1- __version__ = "2.1.0 "
1+ __version__ = "2.1.1 "
Original file line number Diff line number Diff line change 33from redis .asyncio .client import Redis as Redis2 , Pipeline as Pipeline2
44try :
55 from aioredis .client import Redis , Pipeline
6- except ImportError :
6+ except ( ImportError , ModuleNotFoundError ) :
77 T_PIPE = Pipeline2
88 T_REDIS = Redis2
99 T_REDIS_PIPE = Union [Redis2 , Pipeline2 ]
Original file line number Diff line number Diff line change 33from redis .asyncio .client import Redis as Redis2 , Pipeline as Pipeline2
44try :
55 from aioredis .client import Redis , Pipeline
6- except ImportError :
6+ except ( ImportError , ModuleNotFoundError ) :
77 T_REDIS = Union [Redis2 ]
88 T_REDIS_PIPE = Union [Redis2 , Pipeline2 ]
99 PIPE_CLS = (Pipeline2 ,)
You can’t perform that action at this time.
0 commit comments