diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-07-27 16:18:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 16:18:41 +0300 |
commit | 607a59ad6ff0cabc7b0af7480f42043aebc2a33b (patch) | |
tree | 9aed66dc63dabb925c08203c2dc82b057305e85a /redis/asyncio/cluster.py | |
parent | f665bd306dc843cec3e8fa01d6f4061385d1812e (diff) | |
download | redis-py-607a59ad6ff0cabc7b0af7480f42043aebc2a33b.tar.gz |
Drop python 3.6 support (#2306)
Diffstat (limited to 'redis/asyncio/cluster.py')
-rw-r--r-- | redis/asyncio/cluster.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/redis/asyncio/cluster.py b/redis/asyncio/cluster.py index df0c17d..1a33563 100644 --- a/redis/asyncio/cluster.py +++ b/redis/asyncio/cluster.py @@ -377,8 +377,7 @@ class RedisCluster(AbstractRedis, AbstractRedisCluster, AsyncRedisClusterCommand warnings.warn(f"{self._DEL_MESSAGE} {self!r}", ResourceWarning, source=self) try: context = {"client": self, "message": self._DEL_MESSAGE} - # TODO: Change to get_running_loop() when dropping support for py3.6 - asyncio.get_event_loop().call_exception_handler(context) + asyncio.get_running_loop().call_exception_handler(context) except RuntimeError: ... @@ -834,8 +833,7 @@ class ClusterNode: ) try: context = {"client": self, "message": self._DEL_MESSAGE} - # TODO: Change to get_running_loop() when dropping support for py3.6 - asyncio.get_event_loop().call_exception_handler(context) + asyncio.get_running_loop().call_exception_handler(context) except RuntimeError: ... break |