Skip to content

Commit

Permalink
ValueError must be AttributeError in __init__.py (#2542)
Browse files Browse the repository at this point in the history
* Revert "Update __init__ for issue 2215 (#2539)"

This reverts commit f14ed1f.

* Update __init__.py

ValueError must be AttributeError ofc.
  • Loading branch information
SessionIssue committed Jan 8, 2023
1 parent a9ef0c5 commit decd1f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def int_or_str(value):

try:
VERSION = tuple(map(int_or_str, __version__.split(".")))
except ValueError:
except AttributeError:
VERSION = tuple(99, 99, 99)

__all__ = [
Expand Down

0 comments on commit decd1f6

Please sign in to comment.