Skip to content

Commit 81fb483

Browse files
[Backport maintenance/3.3.x] Extend catching of ValueError to 3.12.5+ (#10611)
Extend catching of ValueError to 3.12.5+ (#10610) (cherry picked from commit 19f7a5e) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
1 parent 1ef673b commit 81fb483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _catch_valueerror(unraisable: sys.UnraisableHookArgs) -> None: # pragma: no
112112
sys.__unraisablehook__(unraisable)
113113

114114

115-
if (3, 12, 0) <= sys.version_info[:3] < (3, 12, 3):
115+
if (3, 12, 0) <= sys.version_info[:3] < (3, 12, 3) or sys.version_info >= (3, 12, 5):
116116
sys.unraisablehook = _catch_valueerror
117117

118118

0 commit comments

Comments
 (0)