Skip to content

Commit 1e95114

Browse files
committed
fix version_check
1 parent 7794c70 commit 1e95114

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jupyter_openvscodeserver_proxy/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ def _support_args(args):
6262
def _is_version_supported(major_min, minor_min):
6363
try:
6464
ret = subprocess.check_output([_get_executable('openvscode-server'), '--version'])
65-
help_output = ret.decode()
65+
version_line = ret.decode().splitlines()[0]
6666

67-
version_line = result.stdout.splitlines()[0]
6867
match = re.match(r"(\d+)\.(\d+)", version_line)
6968
if not match:
7069
raise ValueError("Could not extract version number")

0 commit comments

Comments
 (0)