Skip to content

Commit

Permalink
Merge pull request #28 from AnonymousWP/fix-incorrect-update-availabl…
Browse files Browse the repository at this point in the history
…e-string

fix(external_tools): specify encoding
  • Loading branch information
AnonymousWP committed Jul 4, 2023
2 parents da149c7 + 08d8736 commit 8213588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def get(self, request):
p = subprocess.Popen(tool.version_lookup_command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
version_number = None
for line in p.stdout.readlines():
version_number = re.search(re.compile(tool.version_match_regex), str(line))
version_number = re.search(re.compile(tool.version_match_regex), str(line, encoding='utf-8'))
if version_number:
break

Expand Down

0 comments on commit 8213588

Please sign in to comment.