Skip to content

Commit

Permalink
Update __init__ for issue 2215 (redis#2539)
Browse files Browse the repository at this point in the history
Fallback for issue redis#2215
  • Loading branch information
SessionIssue committed Jan 5, 2023
1 parent 3a43190 commit f14ed1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion redis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ def int_or_str(value):
__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",
Expand Down

0 comments on commit f14ed1f

Please sign in to comment.