Skip to content

reliance on sys.stdin which is not always available #82

Closed
@thehesiod

Description

@thehesiod

We just got this exception when being used in a lambda since sys.stdin is None:

  File \"/var/task/nameparser/config/__init__.py\", line 95, in add_with_encoding
    encoding = encoding or sys.stdin.encoding or DEFAULT_ENCODING
AttributeError: 'NoneType' object has no attribute 'encoding'",

perhaps using stdout is better as it's less likely to not be available, or expanding the check for it being None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions