We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aebe47 commit 906c038Copy full SHA for 906c038
src/libtmux/_vendor/version.py
@@ -62,6 +62,9 @@ class InvalidVersion(ValueError):
62
libtmux._vendor.version.InvalidVersion: Invalid version: 'invalid'
63
"""
64
65
+ def __init__(self, version: str, *args: object):
66
+ return super().__init__(f"Invalid version: '{version}'")
67
+
68
69
class _BaseVersion:
70
_key: CmpKey
@@ -195,7 +198,7 @@ def __init__(self, version: str) -> None:
195
198
# Validate the version and parse it into pieces
196
199
match = self._regex.search(version)
197
200
if not match:
- raise InvalidVersion(f"Invalid version: '{version}'")
201
+ raise InvalidVersion(version=version)
202
203
# Store the parsed out pieces of the version
204
self._version = _Version(
0 commit comments