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 e6bc7a2 commit d1afe4dCopy full SHA for d1afe4d
robotcode/language_server/robotframework/utils/version.py
@@ -55,7 +55,7 @@ def s_to_i(s: Optional[str]) -> Optional[int]:
55
return Version(
56
int(m.group("major")),
57
int(m.group("minor")),
58
- s_to_i(m.group("patch")),
+ s_to_i(m.group("patch")) or 0,
59
m.group("pre_id"),
60
s_to_i(m.group("pre_number")),
61
s_to_i(m.group("dev")),
@@ -69,4 +69,4 @@ def s_to_i(s: Optional[str]) -> Optional[int]:
69
70
71
if __name__ == "__main__":
72
- print(get_robot_version() >= (4, 0))
+ print(get_robot_version())
0 commit comments