summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSessionIssue <118734962+SessionIssue@users.noreply.github.com>2023-01-05 13:31:45 +0100
committerGitHub <noreply@github.com>2023-01-05 14:31:45 +0200
commitf14ed1fc822a88a21bbfc64e36bf8b09e5c9386c (patch)
tree73fad9140fc2a9618e08f201033c37f9cd9880f7
parent3a43190c59da94ac71b58f05c8d57a951602c5f1 (diff)
downloadredis-py-f14ed1fc822a88a21bbfc64e36bf8b09e5c9386c.tar.gz
Update __init__ for issue 2215 (#2539)
Fallback for issue https://github.com/redis/redis-py/issues/2215
-rw-r--r--redis/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/redis/__init__.py b/redis/__init__.py
index 6503ac3..df4271c 100644
--- a/redis/__init__.py
+++ b/redis/__init__.py
@@ -53,7 +53,10 @@ except metadata.PackageNotFoundError:
__version__ = "99.99.99"
-VERSION = tuple(map(int_or_str, __version__.split(".")))
+try:
+ VERSION = tuple(map(int_or_str, __version__.split(".")))
+except ValueError:
+ VERSION = tuple(99, 99, 99)
__all__ = [
"AuthenticationError",