Skip to content

Commit fb977e1

Browse files
authored
Print this error the stderr instead of stdout. (#8142)
1 parent c668dca commit fb977e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pylint/lint/utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def prepare_crash_report(ex: Exception, filepath: str, crash_file_path: str) ->
5858
except Exception as exc: # pylint: disable=broad-except
5959
print(
6060
f"Can't write the issue template for the crash in {issue_template_path} "
61-
f"because of: '{exc}'\nHere's the content anyway:\n{template}."
61+
f"because of: '{exc}'\nHere's the content anyway:\n{template}.",
62+
file=sys.stderr,
6263
)
6364
return issue_template_path
6465

0 commit comments

Comments
 (0)