Skip to content

Commit 7b470c4

Browse files
Update cpp_linter_hooks/util.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d6bec73 commit 7b470c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp_linter_hooks/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def parse_version(v: str):
132132
# return the latest version
133133
return max(matched_versions, key=parse_version)
134134

135-
except Exception:
135+
except ValueError:
136136
LOG.warning("Version %s not found in available versions", user_input)
137137
return None
138138

0 commit comments

Comments
 (0)