Skip to content

Commit decd1f6

Browse files
authored
ValueError must be AttributeError in __init__.py (#2542)
* Revert "Update __init__ for issue 2215 (#2539)" This reverts commit f14ed1f. * Update __init__.py ValueError must be AttributeError ofc.
1 parent a9ef0c5 commit decd1f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def int_or_str(value):
5555

5656
try:
5757
VERSION = tuple(map(int_or_str, __version__.split(".")))
58-
except ValueError:
58+
except AttributeError:
5959
VERSION = tuple(99, 99, 99)
6060

6161
__all__ = [

0 commit comments

Comments
 (0)