Skip to content

Commit 02ea94a

Browse files
committed
Correctly decodes subprocess output
1 parent c62c67e commit 02ea94a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fortls/langserver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,9 +1688,9 @@ def _update_version_pypi(self, test: bool = False):
16881688
capture_output=True,
16891689
)
16901690
if result.stdout:
1691-
log.info(result.stdout)
1691+
log.info(result.stdout.decode("utf-8"))
16921692
if result.stderr:
1693-
log.error(result.stderr)
1693+
log.error(result.stderr.decode("utf-8"))
16941694
return True
16951695
# No internet connection exceptions
16961696
except (URLError, KeyError):

0 commit comments

Comments
 (0)