Skip to content

Commit

Permalink
Print this error the stderr instead of stdout. (#8142)
Browse files Browse the repository at this point in the history
  • Loading branch information
yilei authored Jan 31, 2023
1 parent c668dca commit fb977e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pylint/lint/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def prepare_crash_report(ex: Exception, filepath: str, crash_file_path: str) ->
except Exception as exc: # pylint: disable=broad-except
print(
f"Can't write the issue template for the crash in {issue_template_path} "
f"because of: '{exc}'\nHere's the content anyway:\n{template}."
f"because of: '{exc}'\nHere's the content anyway:\n{template}.",
file=sys.stderr,
)
return issue_template_path

Expand Down

0 comments on commit fb977e1

Please sign in to comment.