34 lines
979 B
Diff
34 lines
979 B
Diff
From b1fd781018c9006b252d4eb19178b288f6c9d10a Mon Sep 17 00:00:00 2001
|
|
From: rabbitali <wenxin32@foxmail.com>
|
|
Date: Fri, 5 Jul 2024 15:15:19 +0800
|
|
Subject: [PATCH 1/1] removed the strong dependency detection of redis version
|
|
|
|
---
|
|
kombu/transport/redis.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/kombu/transport/redis.py b/kombu/transport/redis.py
|
|
index 6797854..611e56d 100644
|
|
--- a/kombu/transport/redis.py
|
|
+++ b/kombu/transport/redis.py
|
|
@@ -3,6 +3,7 @@
|
|
import os
|
|
import numbers
|
|
import socket
|
|
+import warnings
|
|
|
|
from bisect import bisect
|
|
from collections import namedtuple
|
|
@@ -979,7 +980,7 @@ class Channel(virtual.Channel):
|
|
|
|
def _get_client(self):
|
|
if redis.VERSION < (3, 2, 0):
|
|
- raise VersionMismatch(
|
|
+ warnings.warn(
|
|
'Redis transport requires redis-py versions 3.2.0 or later. '
|
|
'You have {0.__version__}'.format(redis))
|
|
return redis.StrictRedis
|
|
--
|
|
2.33.0
|
|
|