Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve netrc security check error message #135823

Closed
@picnixz

Description

@picnixz

Feature or enhancement

Proposal:

When netrc security check fails due to ownership issues, we display:

cpython/Lib/netrc.py

Lines 157 to 159 in e7295a8

raise NetrcParseError(
(f"~/.netrc file owner ({fowner}, {user}) does not match"
" current user"))

The message is a bit misleading, so we should improve it.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

https://github.com/python/cpython/pull/135816/files#r2160393000

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions