Skip to content

Commit f14ed1f

Browse files
authored
Update __init__ for issue 2215 (#2539)
Fallback for issue #2215
1 parent 3a43190 commit f14ed1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: redis/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ def int_or_str(value):
5353
__version__ = "99.99.99"
5454

5555

56-
VERSION = tuple(map(int_or_str, __version__.split(".")))
56+
try:
57+
VERSION = tuple(map(int_or_str, __version__.split(".")))
58+
except ValueError:
59+
VERSION = tuple(99, 99, 99)
5760

5861
__all__ = [
5962
"AuthenticationError",

0 commit comments

Comments
 (0)