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

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

Copy link
Copy link
@thehesiod

Description

@thehesiod
Issue body actions

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

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