Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e01f107

Browse filesBrowse files
committed
Gracefully handle encoding problems when querying external executables.
1 parent 667a100 commit e01f107
Copy full SHA for e01f107

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ def impl(args, regex, min_ver=None, ignore_exit_code=False):
330330
# at least min_ver (if set); else, raise ExecutableNotFoundError.
331331
try:
332332
output = subprocess.check_output(
333-
args, stderr=subprocess.STDOUT, universal_newlines=True)
333+
args, stderr=subprocess.STDOUT,
334+
universal_newlines=True, errors="replace")
334335
except subprocess.CalledProcessError as _cpe:
335336
if ignore_exit_code:
336337
output = _cpe.output

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.