diff options
author | SessionIssue <118734962+SessionIssue@users.noreply.github.com> | 2023-01-05 13:31:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-05 14:31:45 +0200 |
commit | f14ed1fc822a88a21bbfc64e36bf8b09e5c9386c (patch) | |
tree | 73fad9140fc2a9618e08f201033c37f9cd9880f7 | |
parent | 3a43190c59da94ac71b58f05c8d57a951602c5f1 (diff) | |
download | redis-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__.py | 5 |
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", |